Fix indentation and remove unnecessary variables

This commit is contained in:
Sambhav Kothari
2016-12-27 21:40:10 +05:30
parent 8cf5d6b4c4
commit 46ffed563b

View File

@@ -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