Skip to content

Commit

Permalink
fix adding extra information
Browse files Browse the repository at this point in the history
  • Loading branch information
jneves committed Feb 25, 2018
1 parent 6d5083e commit a80194a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'zappa_sentry',
packages = ['zappa_sentry'],
version = '0.1.4',
version = '0.1.5',
description = 'Easy integration with sentry for zappa apps',
author = 'João Miguel Neves',
author_email = 'joao@silvaneves.org',
Expand Down
5 changes: 2 additions & 3 deletions zappa_sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ def unhandled_exceptions(e, event, context):
package_info_file.close()

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

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

raven_client.captureException(e)
return True

0 comments on commit a80194a

Please sign in to comment.