1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fix for NoneType errors

This commit is contained in:
echel0n 2014-08-07 22:58:41 -07:00
parent de8adb24d0
commit 922df4c160

View File

@ -431,6 +431,8 @@ class GitUpdateManager(UpdateManager):
if branch:
return branch
return ""
def _check_github_for_update(self):
"""
Uses git commands to check if there is a newer version that the provided
@ -582,6 +584,8 @@ class SourceUpdateManager(UpdateManager):
if 'commit' in branch and self._cur_commit_hash and branch.commit['sha'] == self._cur_commit_hash:
return branch.name
return ""
def need_update(self):
if self.branch != self._find_installed_branch():