Fix Crash report sending errors when no reliable Internet connection

This commit is contained in:
Julien Duponchelle 2015-06-23 19:27:28 +02:00
parent 7f6a064ac1
commit 08b5aec656

View File

@ -64,6 +64,13 @@ class CrashReport:
def __init__(self):
self._client = None
# We don't want sentry making noise if an error is catched when you don't have internet
sentry_errors = logging.getLogger('sentry.errors')
sentry_errors.disabled = True
sentry_uncaught = logging.getLogger('sentry.errors.uncaught')
sentry_uncaught.disabled = True
def capture_exception(self, request=None):
if not RAVEN_AVAILABLE:
return