From 2b82a935d4010230185c939c8a036e334532892c Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 9 Jun 2009 13:07:01 +0100 Subject: [PATCH] Escape < characters in error messages to notifier --- 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 ad50738..b9f218c 100644 --- a/zeroinstall/injector/background.py +++ b/zeroinstall/injector/background.py @@ -99,7 +99,7 @@ class BackgroundHandler(handler.Handler): details = '\n' + '\n'.join(traceback.format_exception(type(exception), exception, tb)) else: details = str(exception) - self.notify("Zero Install", "Error updating %s: %s" % (self.title, details)) + self.notify("Zero Install", "Error updating %s: %s" % (self.title, details.replace('<', '<'))) def notify(self, title, message, timeout = 0, actions = []): """Send a D-BUS notification message if possible. If there is no notification -- 2.11.4.GIT