Skip to content

Commit

Permalink
Fix oversight where cover_file returns None and causes knownfiles to …
Browse files Browse the repository at this point in the history
…crash.
  • Loading branch information
E.S. Rosenberg a.k.a. Keeper of the Keys committed Apr 10, 2020
1 parent 9e59ad2 commit 0be18cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gpodder/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,9 @@ def check_download_folder(self):

known_files.add(filename)

known_files.update(os.path.join(self.cover_file + ext)
for ext in coverart.CoverDownloader.EXTENSIONS)
if self.cover_file:
known_files.update(os.path.join(self.cover_file + ext)
for ext in coverart.CoverDownloader.EXTENSIONS)

for episode in self.episodes:
filename = episode.art_file
Expand Down

0 comments on commit 0be18cc

Please sign in to comment.