mirror of https://github.com/MISP/misp-modules
chg: [backscatter.io] blind fix regarding undefined value
parent
e7dca76cd2
commit
f0ccfd2027
|
@ -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…
Reference in New Issue