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

pull/276/head
Alexandre Dulaunoy 2019-02-10 16:33:09 +01:00
parent 7da479381a
commit acc35e3a02
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 1 additions and 1 deletions

View File

@ -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