diff --git a/misp_modules/modules/expansion/hashlookup.py b/misp_modules/modules/expansion/hashlookup.py index d71597b..82872a0 100644 --- a/misp_modules/modules/expansion/hashlookup.py +++ b/misp_modules/modules/expansion/hashlookup.py @@ -70,17 +70,16 @@ def handler(q=False): hashlookupresult = r.json() if not hashlookupresult: misperrors['error'] = 'Empty result' - return misperrors['error'] + return misperrors elif r.status_code == 404: misperrors['error'] = 'Non existing hash' - return misperrors['error'] + return misperrors else: misperrors['error'] = 'API not accessible' - return misperrors['error'] + return misperrors parser = HashlookupParser(attribute, hashlookupresult, api_url) parser.parse_hashlookup_information() result = parser.get_result() - print(result) return result