Skip to content

Commit

Permalink
new try
Browse files Browse the repository at this point in the history
  • Loading branch information
jneves committed Feb 22, 2018
1 parent 69dd27e commit 3cd4ce9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions zappa_sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ def unhandled_exceptions(e, event, context):
package_info_file = open('package_info.json', 'r')
package_info = json.load(package_info_file)
package_info_file.close()
raven_client.setTagsContext(package_info)

raven_client.setExtraContext({
'event': event,
'context': context
})
raven_client.context.merge({'tags': package_info})

#raven_client.setExtraContext({
# 'event': event,
# 'context': context
#})

raven_client.captureException(e)
return True

0 comments on commit 3cd4ce9

Please sign in to comment.