Skip to content

Commit

Permalink
Handle failed feed updates in "gpo" (bug 1264)
Browse files Browse the repository at this point in the history
Thanks to Ville-Pekka Vainio for reporting this bug.
  • Loading branch information
thp committed Jan 12, 2011
1 parent 75d24ee commit 68aa84c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions bin/gpo
Expand Up @@ -213,13 +213,19 @@ class gPodderCli(object):
for podcast in self.client.get_podcasts():
if url is None and podcast.update_enabled():
self._start_action('Updating %s', podcast.title)
podcast.update()
self._finish_action()
try:
podcast.update()
self._finish_action()
except Exception, e:
self._finish_action(False)
elif podcast.url == url:
# Don't need to check for update_enabled()
self._start_action('Updating %s', podcast.title)
podcast.update()
self._finish_action()
try:
podcast.update()
self._finish_action()
except Exception, e:
self._finish_action(False)

return True

Expand Down

0 comments on commit 68aa84c

Please sign in to comment.