From 46ffed563b321bca8cea5b0d0dc8a142ba2fecc0 Mon Sep 17 00:00:00 2001 From: Sambhav Kothari Date: Tue, 27 Dec 2016 21:40:10 +0530 Subject: [PATCH] Fix indentation and remove unnecessary variables --- picard/coverart/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/picard/coverart/__init__.py b/picard/coverart/__init__.py index dc09ef878..6989c285e 100644 --- a/picard/coverart/__init__.py +++ b/picard/coverart/__init__.py @@ -166,7 +166,6 @@ class CoverArt: # local files if hasattr(coverartimage, 'filepath'): - data = None try: with open(coverartimage.filepath, 'rb') as file: self._set_metadata(coverartimage, file.read()) @@ -175,9 +174,9 @@ class CoverArt: log.error("Failed to read %r: %s (%d)" % (coverartimage.from_file, errmsg, errnum)) except CoverArtImageIOError: - # It doesn't make sense to store/download more images if we can't - # save them in the temporary folder, abort. - return + # It doesn't make sense to store/download more images if we can't + # save them in the temporary folder, abort. + return self.next_in_queue() return