From 4c5425f4d1e444ede262503896916d652989260c Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 9 Jun 2014 17:39:52 -0700 Subject: [PATCH] Update network_timezones.py Fix for timezone conversion issues. --- sickbeard/network_timezones.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sickbeard/network_timezones.py b/sickbeard/network_timezones.py index 469926cb..a3d8cc0b 100644 --- a/sickbeard/network_timezones.py +++ b/sickbeard/network_timezones.py @@ -214,7 +214,10 @@ def get_network_timezone(network, network_dict): try: if lib.dateutil.zoneinfo.ZONEINFOFILE is not None: - n_t = tz.gettz(network_dict[network]) + try: + n_t = tz.gettz(network_dict[network]) + except: + return sb_timezone if n_t is not None: return n_t else: @@ -275,4 +278,4 @@ def test_timeformat(t): if mo is None or len(mo.groups()) < 2: return False else: - return True \ No newline at end of file + return True