Browse Source

fix: Fixed config parsing and the associated error message

pull/352/head
chrisr3d 2 years ago
parent
commit
4411166b43
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 4
      misp_modules/modules/expansion/whois.py

4
misp_modules/modules/expansion/whois.py

@ -29,8 +29,8 @@ def handler(q=False):
misperrors['error'] = "Unsupported attributes type"
return misperrors
if not request.get('config') and not (request['config'].get('apikey') and request['config'].et('url')):
misperrors['error'] = 'EUPI authentication is missing'
if not request.get('config') or (not request['config'].get('server') and not request['config'].get('port')):
misperrors['error'] = 'Whois local instance address is missing'
return misperrors
uwhois = Uwhois(request['config']['server'], int(request['config']['port']))

Loading…
Cancel
Save