diff options
author | Nils Reuße <n.reusse@hxgn.net> | 2020-06-08 22:03:19 +0200 |
---|---|---|
committer | Marinus Schraal <mschraal@gnome.org> | 2020-06-08 23:24:25 +0200 |
commit | f69200cc00be96418fb8687fa7d4fdbf4b692ee9 (patch) | |
tree | 071c1e5f7210adf1e132e3b672df4c6e44421865 | |
parent | 969768d3298b8b1bb647c470058a06ee425e839a (diff) |
pauseonsuspend: Fix calls to MusicLogger.warning()
-rw-r--r-- | gnomemusic/pauseonsuspend.py | 4 |
1 files 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): |