Fixed Python Gadget

svn: r9577
This commit is contained in:
Doug Blank 2007-12-24 22:29:39 +00:00
parent 713190823e
commit 6387436818

View File

@ -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)