mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-28 10:33:59 +00:00
Merge pull request #512 from samj1912/patch
Fix indentation and remove unnecessary variables
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user