Make sure to set a default for Raven client

Fixes #327
This commit is contained in:
Joseph Schorr 2015-08-07 13:03:32 -04:00
parent 4712b27432
commit 14f511bb5a

View file

@ -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__)