Added more code to insure NZBTOMEDIA_VERSION variable is not set to None by mistake.

This commit is contained in:
echel0n 2014-04-15 16:41:31 -07:00
commit 657fe66b66

View file

@ -212,7 +212,8 @@ class GitUpdateManager(UpdateManager):
logger.log(u"Output doesn't look like a hash, not using it", logger.ERROR)
return False
self._cur_commit_hash = cur_commit_hash
nzbtomedia.NZBTOMEDIA_VERSION = self._cur_commit_hash
if self._cur_commit_hash:
nzbtomedia.NZBTOMEDIA_VERSION = self._cur_commit_hash
return True
else:
return False