mirror of https://github.com/MISP/misp-modules
chg: [backscatter.io] Exception handler fixed for recent version of Python
parent
7da479381a
commit
acc35e3a02
|
@ -58,7 +58,7 @@ def handler(q=False):
|
|||
misperrors['error'] = '%s: %s' % (response['error'], response['message'])
|
||||
return misperrors
|
||||
output = {'results': [{'types': mispattributes['output'], 'values': [str(response)]}]}
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
misperrors['error'] = str(e)
|
||||
return misperrors
|
||||
|
||||
|
|
Loading…
Reference in New Issue