Merge pull request #608 from cloudbuy/dateutil-bug-workaround
workaround a dateutil bug
This commit is contained in:
commit
f099dc6a37
@ -391,7 +391,7 @@ class DateTimeField(BaseField):
|
||||
if dateutil:
|
||||
try:
|
||||
return dateutil.parser.parse(value)
|
||||
except ValueError:
|
||||
except (TypeError, ValueError):
|
||||
return None
|
||||
|
||||
# split usecs, because they are not recognized by strptime.
|
||||
|
Loading…
x
Reference in New Issue
Block a user