Skip to content

Commit

Permalink
Merge pull request getsentry#169 from linovia/master
Browse files Browse the repository at this point in the history
Fixed events sent while django has DEBUG=True
  • Loading branch information
dcramer committed Aug 7, 2012
2 parents 8192121 + 7e874ae commit 94e60d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/contrib/django/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 94e60d0

Please sign in to comment.