Skip to content

Commit

Permalink
revert changes, issue was in zappa
Browse files Browse the repository at this point in the history
  • Loading branch information
jneves committed Feb 25, 2018
1 parent 3cd4ce9 commit 6d5083e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# pip-compile --output-file requirements.txt requirements.in
#
click==6.7 # via pip-tools
contextlib2==0.5.5 # via raven
first==2.0.1 # via pip-tools
pip-tools==1.11.0
raven==6.5.0
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
setup(
name = 'zappa_sentry',
packages = ['zappa_sentry'],
version = '0.1.3',
version = '0.1.4',
description = 'Easy integration with sentry for zappa apps',
author = 'João Miguel Neves',
author_email = 'joao@silvaneves.org',
url = 'https://github.com/jneves/zappa-sentry',
download_url = 'https://github.com/jneves/zappa-sentry/archive/0.1.tar.gz',
download_url = 'https://github.com/jneves/zappa-sentry/archive/0.1.4.tar.gz',
keywords = 'logging zappa sentry',
install_requires=[
'raven'
Expand Down
9 changes: 4 additions & 5 deletions zappa_sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@


def unhandled_exceptions(e, event, context):
print('unhandled exceptions')
package_info_file = open('package_info.json', 'r')
package_info = json.load(package_info_file)
package_info_file.close()

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

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

raven_client.captureException(e)
return True

0 comments on commit 6d5083e

Please sign in to comment.