Merge pull request #169 from linovia/master
Fixed events sent while django has DEBUG=True
This commit is contained in:
commit
94e60d080d
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue