diff --git a/calsocial/forms.py b/calsocial/forms.py index 3b0e4b6..dad0bd9 100644 --- a/calsocial/forms.py +++ b/calsocial/forms.py @@ -59,7 +59,7 @@ class TimezoneField(SelectField): try: self.data = pytz.timezone(value) - except Exception as exc: + except pytz.exceptions.UnknownTimeZoneError: raise ValueError(f'Unknown time zone {value}') def iter_choices(self):