FIX:(#1787) Added more specific error logging messages to version check

This commit is contained in:
evilhero 2018-03-11 11:51:52 -04:00
parent e060f37c8e
commit 9b91a3ec83
1 changed files with 4 additions and 4 deletions

View File

@ -163,8 +163,8 @@ def checkGithub():
response = requests.get(url, verify=True)
git = response.json()
mylar.LATEST_VERSION = git['sha']
except:
logger.warn('Could not get the latest commit from github')
except Exception as e:
logger.warn('[ERROR] Could not get the latest commit from github: %s' % e)
mylar.COMMITS_BEHIND = 0
return mylar.CURRENT_VERSION
@ -177,8 +177,8 @@ def checkGithub():
response = requests.get(url, verify=True)
git = response.json()
mylar.COMMITS_BEHIND = git['total_commits']
except:
logger.warn('Could not get commits behind from github')
except Exception as e:
logger.warn('[ERROR] Could not get commits behind from github: %s' % e)
mylar.COMMITS_BEHIND = 0
return mylar.CURRENT_VERSION