mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: When changing log target with python2.{4,5} handle KeyError
This commit is contained in:
parent
ec87e3edbd
commit
7a442f079f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue