1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Fix versionchecker

In CheckVersion.init (sickbeard/versionChecker.py, line 41), the install_type attribute is only assigned if sickbeard.gh has been set, and it won't be if SR couldn't connect to Github. The restart code (SickBeard.py, line 482) tries to access install_type to determine which update command to run, which raises an AttributeError and prevents SR from restarting.

SiCKRAGETV/sickrage-issues#307 (comment)
This commit is contained in:
Fernando 2015-01-20 18:42:18 -02:00
parent 91cb8d885c
commit 728b7bb107

View File

@ -40,6 +40,7 @@ class CheckVersion():
def __init__(self):
self.updater = None
self.install_type = None
if sickbeard.gh:
self.install_type = self.find_install_type()