From 7a442f079f9afdce2192aace6858329e16094589 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Fri, 22 Mar 2013 21:19:31 +0000 Subject: [PATCH] BF: When changing log target with python2.{4,5} handle KeyError --- server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index 0e1b6c97..a0824f1d 100644 --- a/server/server.py +++ b/server/server.py @@ -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