Commit 659462e1 authored by Colomban Wendling's avatar Colomban Wendling

Reset recipient list when reloading configuration

parent b56d2917
......@@ -66,6 +66,7 @@ def __hangup_handler(signum, frame):
from importlib import reload
oldchecks = list(config.checks)
config.checks.clear()
config.emails.to = [] # FIXME: send final mail to removed recipients?
reload(config.configmodule)
config.checks.merge(oldchecks)
......
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