Commit 863c5692 authored by Jérome Perrin's avatar Jérome Perrin Committed by Cédric Le Ninivin

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 1e094d8f
......@@ -101,8 +101,8 @@ class TimerServer(threading.Thread):
err = StringIO()
response = TimerResponse(out, err)
handle(module, TimerRequest(response, interval), response)
except:
pass
except Exception:
logger.warn("Ignoring exception in run loop", exc_info=True)
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