[gnome-music/wip/mschraal/pauseonsuspend-fix-logger-crash-3.36] pauseonsuspend: Fix calls to MusicLogger.warning()



commit f69200cc00be96418fb8687fa7d4fdbf4b692ee9
Author: Nils Reuße <n reusse hxgn net>
Date:   Mon Jun 8 22:03:19 2020 +0200

    pauseonsuspend: Fix calls to MusicLogger.warning()

 gnomemusic/pauseonsuspend.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/pauseonsuspend.py b/gnomemusic/pauseonsuspend.py
index b75ca949..e23fdea1 100644
--- a/gnomemusic/pauseonsuspend.py
+++ b/gnomemusic/pauseonsuspend.py
@@ -95,7 +95,7 @@ class PauseOnSuspend(GObject.GObject):
                 "g-signal", self._pause_playing)
         except GLib.Error as e:
             self._log.warning(
-                "Error: Failed to finish proxy call:", e.message)
+                "Error: Failed to finish proxy call: {}".format(e.message))
 
     def _release_lock(self):
         if self._file_descriptor >= 0:
@@ -117,7 +117,7 @@ class PauseOnSuspend(GObject.GObject):
             self._suspend_proxy = proxy.new_finish(result)
         except GLib.Error as e:
             self._log.warning(
-                "Error: Failed to contact logind daemon:", e.message)
+                "Error: Failed to contact logind daemon: {}".format(e.message))
             return
 
     def _pause_playing(self, proxy, sender, signal, parameters):


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