Commit 4d5a9db9 authored by Jérome Perrin's avatar Jérome Perrin

TimerServer: better exception handling

Only catch exceptions, we don't need a bare except here. In case of
exception, log the traceback instead of being silent.
parent a55b0f78
...@@ -101,8 +101,8 @@ class TimerServer(threading.Thread): ...@@ -101,8 +101,8 @@ class TimerServer(threading.Thread):
err = StringIO() err = StringIO()
response = TimerResponse(out, err) response = TimerResponse(out, err)
handle(module, TimerRequest(response, interval), response) handle(module, TimerRequest(response, interval), response)
except: except Exception:
pass logger.warn("Ignoring exception in run loop", exc_info=True)
TIMER_SERVICE_PATH = '/Control_Panel/timer_service' TIMER_SERVICE_PATH = '/Control_Panel/timer_service'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment