diff --git a/django/core/formfields.py b/django/core/formfields.py index 5056dd7bad..7587b67170 100644 --- a/django/core/formfields.py +++ b/django/core/formfields.py @@ -652,7 +652,7 @@ class TimeField(TextField): except ValueError: # seconds weren't provided time_tuple = time.strptime(data, '%H:%M') return datetime.time(*time_tuple[3:6]) - except ValueError: + except (ValueError, TypeError): return None html2python = staticmethod(html2python)