Skip to content

Commit 26abf67

Browse files
Merge pull request #4 from alekam/patch-1
Update forms.py
2 parents 03758d2 + 1c550c9 commit 26abf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timezone_utils/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def to_python(self, value):
3232
return value
3333

3434
try:
35-
pytz.timezone(str(value))
35+
return pytz.timezone(str(value))
3636
except pytz.UnknownTimeZoneError:
3737
raise ValidationError(
3838
message=self.error_messages['invalid'],

0 commit comments

Comments
 (0)