From ab5a82b9dfbb20a33d829b74c1865776f4e8b976 Mon Sep 17 00:00:00 2001 From: Marinus Schraal Date: Mon, 12 Feb 2018 16:17:26 +0100 Subject: [PATCH] albumartcache: Logger warning format incorrect Use correct string formatting call. Convert the error code into the enum name. --- gnomemusic/albumartcache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnomemusic/albumartcache.py b/gnomemusic/albumartcache.py index 345cd26d1..c74a42aa3 100644 --- a/gnomemusic/albumartcache.py +++ b/gnomemusic/albumartcache.py @@ -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 -- GitLab