chg: [docu] long_description + misp_maltego useragent fixes #14

pull/40/head
Christophe Vandeplas 2020-03-15 07:34:31 +01:00
parent eb49465639
commit 487285b41c
2 changed files with 5 additions and 1 deletions

View File

@ -2,6 +2,9 @@
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='MISP_maltego',
author='Christophe Vandeplas',
@ -11,6 +14,7 @@ setup(
maintainer='Christophe Vandeplas',
url='https://github.com/MISP/MISP-maltego',
description='Maltego transform for interacting with a MISP Threat Sharing community and with MITRE ATT&CK.',
long_description=long_description,
license='AGPLv3',
packages=find_packages('src'),
package_dir={'': 'src'},

View File

@ -88,7 +88,7 @@ def get_misp_connection(config=None, parameters=None):
misp_key = parameters['mispkey'].value
except AttributeError:
raise MaltegoException("ERROR: mispurl and mispkey need to be set to something valid")
misp_connection = PyMISP(misp_url, misp_key, misp_verify, 'json', misp_debug)
misp_connection = PyMISP(misp_url, misp_key, misp_verify, 'json', misp_debug, tool='misp_maltego')
except Exception:
if is_local_exec_mode():
raise MaltegoException("ERROR: Cannot connect to MISP server. Please verify your MISP_Maltego.conf settings.")