From 0be18cc2bc9a003b65b3ed12f78937c09a797305 Mon Sep 17 00:00:00 2001 From: "E.S. Rosenberg a.k.a. Keeper of the Keys" Date: Fri, 10 Apr 2020 13:16:25 +0300 Subject: [PATCH] Fix oversight where cover_file returns None and causes knownfiles to crash. --- src/gpodder/model.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gpodder/model.py b/src/gpodder/model.py index aa4f092..df3159d 100644 --- a/src/gpodder/model.py +++ b/src/gpodder/model.py @@ -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