Merge branch 'dateutil-bug-workaround'

This commit is contained in:
Damien Churchill 2014-03-12 17:27:04 +00:00
commit 2f4978cfea

View File

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