[gnome-music/wip/mschraal/artcache-error-reporting] albumartcache: Logger warning format incorrect



commit ab5a82b9dfbb20a33d829b74c1865776f4e8b976
Author: Marinus Schraal <mschraal gnome org>
Date:   Mon Feb 12 16:17:26 2018 +0100

    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 345cd26..c74a42a 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]