mirror of https://github.com/fail2ban/fail2ban
BF: handle 2.4 and %f in strftime
parent
2cefce5ee0
commit
50a6289f03
|
@ -220,7 +220,7 @@ class DateStrptime(DateTemplate):
|
||||||
try:
|
try:
|
||||||
time.strptime("26-Jul-2007 15:20:52.252","%d-%b-%Y %H:%M:%S.%f")
|
time.strptime("26-Jul-2007 15:20:52.252","%d-%b-%Y %H:%M:%S.%f")
|
||||||
DateStrptime._f = True
|
DateStrptime._f = True
|
||||||
except ValueError:
|
except (ValueError, KeyError):
|
||||||
DateTemplate._f = False
|
DateTemplate._f = False
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue