From d562eb23eae0b704fdea4e8309b447adffa73d1c Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 29 Dec 2009 20:20:16 +0100 Subject: [PATCH] [magneto] two small trivial fixes --- magneto/src/magneto/core/interfaces.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/magneto/src/magneto/core/interfaces.py b/magneto/src/magneto/core/interfaces.py index 2bb48db32..c4532d6ce 100644 --- a/magneto/src/magneto/core/interfaces.py +++ b/magneto/src/magneto/core/interfaces.py @@ -101,6 +101,8 @@ class MagnetoCore(MagnetoCoreUI): import signal signal.signal(signal.SIGINT, signal.SIG_DFL) + # Set this to True when DBus service is up + self._dbus_service_available = False # Notice Window Widget status self.notice_window_shown = None # List of package updates available @@ -304,7 +306,7 @@ class MagnetoCore(MagnetoCoreUI): def set_state(self, new_state, use_busy_icon = 0): if not new_state in config.APPLET_STATES: - raise IncorrectParameter("Error: invalid state %s" % new_state) + raise AttributeError("Error: invalid state %s" % new_state) if new_state == "OKAY": self.change_icon("okay")