mirror of https://github.com/MISP/misp-modules
fix: Fixed pep8
parent
163b4a64b4
commit
f1dac0c8df
|
@ -52,7 +52,7 @@ def handler(q=False):
|
||||||
try:
|
try:
|
||||||
config = request["config"]
|
config = request["config"]
|
||||||
auth_data = lastline_api.LastlineAbstractClient.get_login_params_from_dict(config)
|
auth_data = lastline_api.LastlineAbstractClient.get_login_params_from_dict(config)
|
||||||
if not request.get('attribute') or not request['attribute'].get('value'):
|
if not request.get('attribute') or not check_input_attribute(request['attribute'], requirements=('type', 'value')):
|
||||||
return {'error': f'{standard_error_message}, {checking_error} that is the link to a Lastline analysis.'}
|
return {'error': f'{standard_error_message}, {checking_error} that is the link to a Lastline analysis.'}
|
||||||
analysis_link = request['attribute']['value']
|
analysis_link = request['attribute']['value']
|
||||||
# The API url changes based on the analysis link host name
|
# The API url changes based on the analysis link host name
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
import base64
|
import base64
|
||||||
from. import check_input_attribute, checking_error, standard_error_message
|
from . import check_input_attribute, checking_error, standard_error_message
|
||||||
from pymisp import MISPEvent, MISPObject
|
from pymisp import MISPEvent, MISPObject
|
||||||
from urllib.parse import quote
|
from urllib.parse import quote
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue