fix: Fixed pep8

pull/420/head
chrisr3d 2020-07-28 15:23:24 +02:00
parent 163b4a64b4
commit f1dac0c8df
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ def handler(q=False):
try:
config = request["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.'}
analysis_link = request['attribute']['value']
# The API url changes based on the analysis link host name

View File

@ -1,7 +1,7 @@
import json
import requests
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 urllib.parse import quote