Skip to content

Commit

Permalink
Replace SENTRY_DEBUG switch by RAVEN_CONFIG['register_signals']
Browse files Browse the repository at this point in the history
  • Loading branch information
xordoquy committed Aug 7, 2012
1 parent 8192121 commit 7e874ae
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 7e874ae

Please sign in to comment.