Kaydet (Commit) 7573756e authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed #1195 -- Fixed formfields.TimeField bug introduced in [1872]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 580a8eb4
......@@ -771,7 +771,7 @@ class TimeField(TextField):
if (len(part_list) == 2):
t = t.replace(microsecond=int(part_list[1]))
return t
except (ValueError, TypeError):
except (ValueError, TypeError, AttributeError):
return None
html2python = staticmethod(html2python)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment