From: <cl...@us...> - 2003-05-02 03:56:35
|
Update of /cvsroot/todo-manager/todo-manager In directory sc8-pr-cvs1:/tmp/cvs-serv24165 Modified Files: plugin.py Log Message: If a plugin can't be loaded, the traceback and exception will be printed. This should help with debugging instead of just saying that it can't be loaded. Index: plugin.py =================================================================== RCS file: /cvsroot/todo-manager/todo-manager/plugin.py,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- plugin.py 26 Apr 2003 22:08:13 -0000 1.8 +++ plugin.py 2 May 2003 03:56:32 -0000 1.9 @@ -7,7 +7,7 @@ # Architecture for loading plugins into ToDo Manager from __init__ import * -import os, imp +import os, imp, traceback import tdmcalls _ = get_translation('core') @@ -41,6 +41,7 @@ try: mod = imp.load_source(os.path.splitext(file)[0], file) except: + traceback.print_exc() print _("Unable to load plugin from file: %s" %file) return None |