mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Fix for NoneType errors
This commit is contained in:
parent
de8adb24d0
commit
922df4c160
1 changed files with 5 additions and 1 deletions
|
@ -430,7 +430,9 @@ class GitUpdateManager(UpdateManager):
|
|||
branch = branch_info.strip().replace('refs/heads/', '', 1)
|
||||
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
|
||||
|
@ -581,6 +583,8 @@ class SourceUpdateManager(UpdateManager):
|
|||
for branch in gh.branches():
|
||||
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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue