Commit ab5a82b9 authored by Marinus Schraal's avatar Marinus Schraal

albumartcache: Logger warning format incorrect

Use correct string formatting call. Convert the error code into the enum
name.
parent 2b0dd1ec
Pipeline #3301 passed with stages
in 22 minutes and 12 seconds
......@@ -535,8 +535,8 @@ class EmbeddedArt(GObject.GObject):
if (error is not None
or tags is None):
if error:
logger.warn(
"Discoverer error: {}, {}", error.domain, error.message)
logger.warn("Discoverer error: {}, {}".format(
Gst.CoreError(error.code), error.message))
discoverer.stop()
self.emit('unavailable')
return
......
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