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:
|
if dateutil:
|
||||||
try:
|
try:
|
||||||
return dateutil.parser.parse(value)
|
return dateutil.parser.parse(value)
|
||||||
except ValueError:
|
except (TypeError, ValueError):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# split usecs, because they are not recognized by strptime.
|
# split usecs, because they are not recognized by strptime.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user