From ae1016946bbbe0dd2652e0c383b8c5214fca4527 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Fri, 28 Aug 2020 17:30:23 +0200 Subject: [PATCH] fix: Making pep8 happy --- misp_modules/modules/expansion/recordedfuture.py | 2 +- misp_modules/modules/expansion/shodan.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/recordedfuture.py b/misp_modules/modules/expansion/recordedfuture.py index 537e997..ccea31b 100644 --- a/misp_modules/modules/expansion/recordedfuture.py +++ b/misp_modules/modules/expansion/recordedfuture.py @@ -62,7 +62,7 @@ class RequestHandler: response.raise_for_status() return response except (ConnectTimeout, ProxyError, InvalidURL) as error: - msg = f'Error connecting with proxy, please check the Recorded Future app proxy settings.' + msg = 'Error connecting with proxy, please check the Recorded Future app proxy settings.' LOGGER.error(f'{msg} Error: {error}') misperrors['error'] = msg raise diff --git a/misp_modules/modules/expansion/shodan.py b/misp_modules/modules/expansion/shodan.py index ecd5b82..f295deb 100755 --- a/misp_modules/modules/expansion/shodan.py +++ b/misp_modules/modules/expansion/shodan.py @@ -209,6 +209,7 @@ class ShodanParser(): x509_object.add_reference(self.attribute.uuid, 'identifies') self.misp_event.add_object(x509_object) + def handler(q=False): if q is False: return False