Commit b2aef88c authored by Vadim Rutkovsky's avatar Vadim Rutkovsky

Pep8 fixes

parent fe99b555
......@@ -219,7 +219,7 @@ class AlbumArtCache(GObject.GObject):
t = Thread(target=self.lookup_worker, args=(item, width, height, callback, itr, artist, album))
THREAD_QUEUE.append(t)
self.emit('thread-added', len(THREAD_QUEUE)-1)
self.emit('thread-added', len(THREAD_QUEUE) - 1)
except Exception as e:
logger.warn("Error: %s, %s", e.__class__, e)
......@@ -277,7 +277,7 @@ class AlbumArtCache(GObject.GObject):
t = Thread(target=self.download_worker, args=(item, width, height, path, callback, itr, artist, album, uri))
THREAD_QUEUE.append(t)
self.emit('thread-added', len(THREAD_QUEUE)-1)
self.emit('thread-added', len(THREAD_QUEUE) - 1)
except Exception as e:
logger.warn("Error: %s", e)
self.finish(item, None, None, callback, itr, width, height, artist, album)
......@@ -297,7 +297,7 @@ class AlbumArtCache(GObject.GObject):
t = Thread(target=self.download_worker, args=(item, width, height, path, callback, itr, artist, album, uri))
THREAD_QUEUE.append(t)
self.emit('thread-added', len(THREAD_QUEUE)-1)
self.emit('thread-added', len(THREAD_QUEUE) - 1)
except Exception as e:
logger.warn("Error: %s", e)
self.finish(item, None, None, callback, itr, width, height, artist, album)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment