1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-21 13:37:34 +00:00

no log: added missing logging

This commit is contained in:
morpheus65535 2023-01-16 14:08:34 -05:00
parent 2babae1937
commit b08c8cf1a8

View file

@ -15,6 +15,7 @@ from random import randrange
from tzlocal import get_localzone
from tzlocal.utils import ZoneInfoNotFoundError
from dateutil import tz
import logging
from sonarr.sync.series import update_series
from sonarr.sync.episodes import sync_episodes, update_all_episodes
@ -42,7 +43,8 @@ class Scheduler:
try:
self.timezone = get_localzone()
except ZoneInfoNotFoundError:
except ZoneInfoNotFoundError as e:
logging.error(f"BAZARR cannot use specified timezone: {e}")
self.timezone = tz.gettz("UTC")
self.aps_scheduler = BackgroundScheduler({'apscheduler.timezone': self.timezone})