From 9a5b49f22be70abd3a48d121887ded08eaa49b0f Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Sat, 1 Mar 2008 14:28:53 +0000 Subject: [PATCH] The background checker failed to report errors correctly. This was caused by an API change in 0.32, which passes an extra argument to report_error: TypeError: report_error() takes exactly 2 arguments (3 given) --- zeroinstall/injector/background.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/injector/background.py b/zeroinstall/injector/background.py index 9008908..e1be5e4 100644 --- a/zeroinstall/injector/background.py +++ b/zeroinstall/injector/background.py @@ -59,7 +59,7 @@ class BackgroundHandler(handler.Handler): notify("Zero Install", "Can't update interface; signature not yet trusted. Running GUI...", timeout = 2) _exec_gui(interface.uri, '--refresh') - def report_error(self, exception): + def report_error(self, exception, tb = None): notify("Zero Install", "Error updating %s: %s" % (self.title, str(exception))) def notify(self, title, message, timeout = 0, actions = []): -- 2.11.4.GIT