Commit 78e9394f 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 cfd1522e
......@@ -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