Skip to content

Commit

Permalink
release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jneves committed Mar 16, 2018
1 parent 9b44356 commit d6955ad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pip-tools
raven
twine
flake8
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ certifi==2018.1.18 # via requests
chardet==3.0.4 # via requests
click==6.7 # via pip-tools
first==2.0.1 # via pip-tools
flake8==3.5.0
idna==2.6 # via requests
mccabe==0.6.1 # via flake8
pip-tools==1.11.0
pkginfo==1.4.2 # via twine
pycodestyle==2.3.1 # via flake8
pyflakes==1.6.0 # via flake8
raven==6.5.0
requests-toolbelt==0.8.0 # via twine
requests==2.18.4 # via requests-toolbelt, twine
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.2.1',
version = '0.2.2',
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.2.1.tar.gz',
download_url = 'https://github.com/jneves/zappa-sentry/archive/0.2.2.tar.gz',
keywords = 'logging zappa sentry',
install_requires=[
'raven'
Expand Down
6 changes: 4 additions & 2 deletions zappa_sentry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from configparser import ConfigParser
import json
import os
import sys

from raven import Client
from raven.transport.http import HTTPTransport
Expand All @@ -15,7 +16,8 @@

def get_raven_client():
if not this._raven_client:
this._raven_client = Client(this.raven_config.get('DEFAULT', 'SENTRY_DSN'), transport=HTTPTransport)
this._raven_client = Client(this.raven_config.get('DEFAULT', 'SENTRY_DSN'),
transport=HTTPTransport)
return this._raven_client


Expand All @@ -29,7 +31,7 @@ def unhandled_exceptions(e, event, context):
package_info_file.close()

raven_client.context.merge({'tags': package_info})
except:
except OSError:
# not deployed, probably a test
pass

Expand Down

0 comments on commit d6955ad

Please sign in to comment.