1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

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
This commit is contained in:
Adrian Holovaty 2006-01-09 05:11:13 +00:00
parent 580a8eb42f
commit 7573756e18

View File

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