BF: handle 2.4 and %f in strftime

pull/349/head
Daniel Black 2013-09-16 18:50:19 +10:00
parent 2cefce5ee0
commit 50a6289f03
1 changed files with 1 additions and 1 deletions

View File

@ -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: