Browse Source

chg: [backscatter.io] blind fix regarding undefined value

pull/276/head
Alexandre Dulaunoy 3 years ago
parent
commit
f0ccfd2027
No known key found for this signature in database GPG Key ID: 9E2CD4944E6CBCD
  1. 2
      misp_modules/modules/expansion/backscatter_io.py

2
misp_modules/modules/expansion/backscatter_io.py

@ -53,7 +53,7 @@ def handler(q=False):
try:
bs = Backscatter(checks['config']['api_key'])
response = bs.get_observations(query=output['value'], query_type='ip')
response = bs.get_observations(query=checks['value'], query_type='ip')
if not response['success']:
misperrors['error'] = '%s: %s' % (response['error'], response['message'])
return misperrors

Loading…
Cancel
Save