diff --git a/kolibri/deployment/default/settings/base.py b/kolibri/deployment/default/settings/base.py index 8206a1b8a88..f84301b984b 100644 --- a/kolibri/deployment/default/settings/base.py +++ b/kolibri/deployment/default/settings/base.py @@ -16,6 +16,7 @@ from django.conf import locale from morango.constants import settings as morango_settings from tzlocal import get_localzone +from tzlocal.utils import ZoneInfoNotFoundError import kolibri from kolibri.deployment.default.cache import CACHES @@ -309,7 +310,7 @@ try: TIME_ZONE = get_localzone().zone -except (pytz.UnknownTimeZoneError, ValueError): +except (pytz.UnknownTimeZoneError, ValueError, ZoneInfoNotFoundError): # Do not fail at this point because a timezone was not # detected. TIME_ZONE = pytz.utc.zone