Skip to content

Commit

Permalink
Woodchuck: Make soft errors quieter (bug 1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neal H. Walfield authored and thp committed Nov 12, 2011
1 parent b97faa7 commit 0506a04
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/gpodder/plugins/woodchuck.py
Expand Up @@ -422,13 +422,21 @@ def on_episode_delete(self, episode, filename):
logger.debug("Episode %s (%s): file deleted (%s)"
% (episode.guid, episode.title, filename))

self[episode.channel.url][episode.guid].files_deleted()
try:
self[episode.channel.url][episode.guid].files_deleted()
except KeyError:
logger.debug("on_episode_delete: episode %s (%s) not registered",
episode.guid, episode.title)

@execute_in_main_thread
def on_episode_removed_from_podcast(self, episode):
logger.debug("Episode %s (%s) removed" % (episode.guid, episode.title))

del self[episode.channel.url][episode.guid]
try:
del self[episode.channel.url][episode.guid]
except KeyError:
logger.debug("on_episode_removed_from_podcast: episode %s (%s) not registered",
episode.guid, episode.title)

@coroutine
def check_subscriptions():
Expand Down

0 comments on commit 0506a04

Please sign in to comment.