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

pull/148/head
Steven Hiscocks 2013-03-22 21:19:31 +00:00
parent ec87e3edbd
commit 7a442f079f
1 changed files with 1 additions and 1 deletions

View File

@ -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