BF: When changing log target with python2.{4,5} handle KeyError

pull/148/head
Steven Hiscocks 12 years ago
parent ec87e3edbd
commit 7a442f079f

@ -379,7 +379,7 @@ class Server:
try:
handler.flush()
handler.close()
except ValueError:
except (ValueError, KeyError):
if sys.version_info >= (2,6):
raise
# is known to be thrown after logging was shutdown once

Loading…
Cancel
Save