mirror of https://github.com/fail2ban/fail2ban
BF: When changing log target with python2.{4,5} handle KeyError
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…
Reference in New Issue