mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: handle 2.4 and %f in strftime
This commit is contained in:
parent
2cefce5ee0
commit
50a6289f03
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ class DateStrptime(DateTemplate):
|
|||
try:
|
||||
time.strptime("26-Jul-2007 15:20:52.252","%d-%b-%Y %H:%M:%S.%f")
|
||||
DateStrptime._f = True
|
||||
except ValueError:
|
||||
except (ValueError, KeyError):
|
||||
DateTemplate._f = False
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Reference in a new issue