From 14f511bb5af25075b5bbc67b8ec21031ef2649a8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 7 Aug 2015 13:03:32 -0400 Subject: [PATCH] Make sure to set a default for Raven client Fixes #327 --- workers/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workers/worker.py b/workers/worker.py index 71b46ade8..ac30fb5cf 100644 --- a/workers/worker.py +++ b/workers/worker.py @@ -24,6 +24,7 @@ class Worker(object): self._operations = [] self._stop = Event() self._terminated = Event() + self._raven_client = None if app.config.get('EXCEPTION_LOG_TYPE', 'FakeSentry') == 'Sentry': worker_name = '%s:worker-%s' % (socket.gethostname(), self.__class__.__name__)