Fixed updater (hopefully), and some other small bugs

This commit is contained in:
Remy
2011-07-14 02:36:30 -07:00
parent b847b73b85
commit 1fdf117a52
2 changed files with 6 additions and 3 deletions

View File

@@ -373,8 +373,11 @@ def shutdown(restart=False, update=False):
config_write()
if update:
versioncheck.update()
try:
versioncheck.update()
except Exception, e:
logger.warn('Headphones failed to update: %s. Restarting.' % e)
if restart:
popen_list = [sys.executable, FULL_PATH]

View File

@@ -89,7 +89,7 @@ def checkGithub():
def update():
output, err = runGit('pull origin '+headphones.LATEST_VERSION)
output, err = runGit('pull origin master')
if not output:
logger.error('Couldn\'t download latest version')