diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:09:40 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-31 21:09:40 +0200 |
commit | 26961676bf2bada721a5d7e69dadac00820a0cfa (patch) | |
tree | 09ec684fed2285925e965cc8a31badbaddc96dd4 /module/PluginThread.py | |
parent | cleanup (diff) | |
download | pyload-26961676bf2bada721a5d7e69dadac00820a0cfa.tar.xz |
encoding fix, locale cleanup
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index aaa127d04..c3d6c9ec7 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -65,8 +65,8 @@ class PluginThread(Thread): dump += "\t%20s = " % key try: dump += pformat(value) + "\n" - except: - dump += "<ERROR WHILE PRINTING VALUE>\n" + except Exception, e: + dump += "<ERROR WHILE PRINTING VALUE> "+ str(e) +"\n" dump += "\n\nPLUGIN OBJECT DUMP: \n\n" @@ -74,7 +74,10 @@ class PluginThread(Thread): attr = getattr(pyfile.plugin, name) if not name.endswith("__") and type(attr) != MethodType: dump += "\t%20s = " % name - dump += pformat(attr) +"\n" + try: + dump += pformat(attr) + "\n" + except Exception, e: + dump += "<ERROR WHILE PRINTING VALUE> "+ str(e) +"\n" dump += "\nPYFILE OBJECT DUMP: \n\n" @@ -82,7 +85,10 @@ class PluginThread(Thread): attr = getattr(pyfile, name) if not name.endswith("__") and type(attr) != MethodType: dump += "\t%20s = " % name - dump += pformat(attr) +"\n" + try: + dump += pformat(attr) + "\n" + except Exception, e: + dump += "<ERROR WHILE PRINTING VALUE> "+ str(e) +"\n" if self.m.core.config.plugin.has_key(pyfile.pluginname): |