Merge pull request #169 from linovia/master

Fixed events sent while django has DEBUG=True
This commit is contained in:
David Cramer 2012-08-07 12:12:02 -07:00
commit 94e60d080d
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ def sentry_exception_handler(request=None, **kwargs):
def actually_do_stuff(request=None, **kwargs):
exc_info = sys.exc_info()
try:
if (django_settings.DEBUG and not getattr(django_settings, 'SENTRY_DEBUG', False)) or getattr(exc_info[1], 'skip_sentry', False):
if not getattr(django_settings, 'RAVEN_CONFIG', {}).get('register_signals', not django_settings.DEBUG) or getattr(exc_info[1], 'skip_sentry', False):
return
if transaction.is_dirty():