From 922df4c160b4be966c4e8161c785ba479c4ce353 Mon Sep 17 00:00:00 2001 From: echel0n Date: Thu, 7 Aug 2014 22:58:41 -0700 Subject: [PATCH] Fix for NoneType errors --- sickbeard/versionChecker.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sickbeard/versionChecker.py b/sickbeard/versionChecker.py index 3b172485..2f29d574 100644 --- a/sickbeard/versionChecker.py +++ b/sickbeard/versionChecker.py @@ -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):