chg: [backscatter.io] Exception handler fixed for recent version of Python

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

@ -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…
Cancel
Save