Skip to content

Commit

Permalink
Don't fail if update server is down (bug 2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
thp committed May 3, 2016
1 parent af779e0 commit 3c6df11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/gpodder/gtkui/main.py
Expand Up @@ -3108,7 +3108,16 @@ def check_for_updates(self, silent):
If silent=False, a message will be shown even if no updates are
available (set silent=False when the check is manually triggered).
"""
up_to_date, version, released, days = util.get_update_info()
try:
up_to_date, version, released, days = util.get_update_info()
except Exception as e:
if silent:
logger.warn('Could not check for updates.', exc_info=True)
else:
title = _('Could not check for updates')
message = _('Please try again later.')
self.show_message(message, title, important=True)
return

if up_to_date and not silent:
title = _('No updates available')
Expand Down

0 comments on commit 3c6df11

Please sign in to comment.