mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix for NoneType errors
This commit is contained in:
parent
de8adb24d0
commit
922df4c160
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user