From 6387436818cb90543ecf7b86dc88da39b0c93887 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 24 Dec 2007 22:29:39 +0000 Subject: [PATCH] Fixed Python Gadget svn: r9577 --- src/plugins/DefaultGadgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/DefaultGadgets.py b/src/plugins/DefaultGadgets.py index fc5e63a30..62a58145a 100644 --- a/src/plugins/DefaultGadgets.py +++ b/src/plugins/DefaultGadgets.py @@ -318,7 +318,7 @@ class PythonGadget(Gadget): line = line[2:] # update dbstate, in case in changed: self.env["dbstate"] = self.gui.dbstate - _retval = "error" + _retval = None if "_retval" in self.env: del self.env["_retval"] exp1 = """_retval = """ + string.strip(line)