diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-01-09 05:11:13 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-01-09 05:11:13 +0000 |
| commit | 7573756e18b813a3aa388ff031e3167aa4665c15 (patch) | |
| tree | eb53b7c44b35076dff2b2106bf069bc7ec2175cb | |
| parent | 580a8eb42f3b998637fe629f8e40ddd822b6cfcf (diff) | |
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
| -rw-r--r-- | django/core/formfields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/formfields.py b/django/core/formfields.py index 530c8b554b..1d018aff5c 100644 --- a/django/core/formfields.py +++ b/django/core/formfields.py @@ -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) |
