Re: [PATCH] Suppress errors in Python AppletScripts

2010-07-29 Thread Thomas Olsen
On Wednesday 28 July 2010 01:18:22 Aaron J. Seigo wrote: > On July 27, 2010, Luca Beltrame wrote: > > Let me know if it's OK. > > in the patch, is > > + > PythonAppletScript.importer.unregister_top_level(self.pluginName) > > the proper indentation for that line? (not a pythonista, so

Re: [PATCH] Suppress errors in Python AppletScripts

2010-07-28 Thread Luca Beltrame
On Wednesday 28 July 2010 23:21:54 Simon Edwards wrote: > It looks pretty good, just fix up the indentation and make sure you test > it a bit before you commit. Also wait until after 4.5 is out before you I used it for a bit, I'll likely test more this weekend and the upcoming week. If all goes w

Re: [PATCH] Suppress errors in Python AppletScripts

2010-07-28 Thread Simon Edwards
Hello, On 07/28/2010 12:03 AM, Luca Beltrame wrote: > while making a Python > plasmoid today, I noticed that the logs spammed Python exceptions to the > console once the plasmoid got deleted: > > AttributeError: 'PythonAppletScript' > object has no attribute 'pluginName' > > and also other errors

Re: [PATCH] Suppress errors in Python AppletScripts

2010-07-27 Thread Aaron J. Seigo
On July 27, 2010, Luca Beltrame wrote: > Let me know if it's OK. in the patch, is + PythonAppletScript.importer.unregister_top_level(self.pluginName) the proper indentation for that line? (not a pythonista, so not sure if what looks like extra indentation there will matter any. othe