Fix for NoneType errors

This commit is contained in:
echel0n 2014-08-07 22:58:41 -07:00
parent de8adb24d0
commit 922df4c160
1 changed files with 5 additions and 1 deletions

View File

@ -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):