From c58afbc2f95ab39ccf5f1eb5446095868b025705 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 17 Jan 2009 12:56:33 +0000 Subject: [PATCH] don't traceback when we fail to announce new messahe on dbus. Fixes #4658 --- src/remote_control.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remote_control.py b/src/remote_control.py index d1b73da0d..ccd01abfa 100644 --- a/src/remote_control.py +++ b/src/remote_control.py @@ -102,7 +102,10 @@ class Remote: def raise_signal(self, signal, arg): if self.signal_object: - getattr(self.signal_object, signal)(get_dbus_struct(arg)) + try: + getattr(self.signal_object, signal)(get_dbus_struct(arg)) + except UnicodeDecodeError: + pass # ignore error when we fail to announce on dbus class SignalObject(dbus.service.Object):