Skip to content

Commit 1c550c9

Browse files
committed
Update forms.py
You forgot `return` keyword
1 parent 03758d2 commit 1c550c9

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)