Commit 20da5e13 authored by echel0n's avatar echel0n

Fixed Windows unicode issue with tzlocal.

parent d7695d3b
# Changelog
- * 75e5100 - 2018-11-25: Release v9.4.44
- * 06ca72d - 2018-11-26: Fixed Windows unicode issue with tzlocal.
- * d07ac9d - 2018-11-25: Release v9.4.44
- * 29011fc - 2018-11-25: Fixed issues with searching by scene numbers.
- * 5882a99 - 2018-11-25: Release v9.4.43
- * db39bd2 - 2018-11-25: Fixed episode search string fallback. Added touch file helper function.
......
......@@ -39,7 +39,7 @@ unidecode == 0.4.21
twilio == 6.10.0
chardet == 3.0.4
pytz == 2017.3
tzlocal == 1.5.1
tzlocal == 2.0.0b1
raven == 6.7.0
python-keycloak-client == 0.1.3
simplejson == 3.15.0
......
......@@ -85,7 +85,10 @@ class Core(object):
self.pid = os.getpid()
self.showlist = []
self.tz = tz.tzwinlocal() if tz.tzwinlocal else tz.tzlocal()
try:
self.tz = tz.tzwinlocal() if tz.tzwinlocal else tz.tzlocal()
except Exception:
self.tz = tz.tzlocal()
self.config_file = None
self.data_dir = None
......
......@@ -390,7 +390,7 @@ class NameParser(object):
if bestResult.show.is_scene and not skip_scene_detection:
sickrage.app.log.debug(
"Converted parsed result {} into {}".format(bestResult.original_name, bestResult))
"Scene converted parsed result {} into {}".format(bestResult.original_name, bestResult))
# CPU sleep
time.sleep(0.02)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment