BF: Handle expected errors for python3.{0,1} when changing log target

pull/128/merge^2
Steven Hiscocks 12 years ago
parent a4a24048d4
commit 8ddc9de928

@ -383,7 +383,8 @@ class Server:
handler.flush() handler.flush()
handler.close() handler.close()
except ValueError: except ValueError:
if sys.version_info >= (2,6): if (2,6) <= sys.version_info < (3,) or \
(3,2) <= sys.version_info:
raise raise
# is known to be thrown after logging was shutdown once # is known to be thrown after logging was shutdown once
# with older Pythons -- seems to be safe to ignore there # with older Pythons -- seems to be safe to ignore there

Loading…
Cancel
Save