Skip to content

Commit 0be18cc

Browse files
author
E.S. Rosenberg a.k.a. Keeper of the Keys
committed
Fix oversight where cover_file returns None and causes knownfiles to crash.
1 parent 9e59ad2 commit 0be18cc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gpodder/model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,9 @@ def check_download_folder(self):
566566

567567
known_files.add(filename)
568568

569-
known_files.update(os.path.join(self.cover_file + ext)
570-
for ext in coverart.CoverDownloader.EXTENSIONS)
569+
if self.cover_file:
570+
known_files.update(os.path.join(self.cover_file + ext)
571+
for ext in coverart.CoverDownloader.EXTENSIONS)
571572

572573
for episode in self.episodes:
573574
filename = episode.art_file

0 commit comments

Comments
 (0)