From: <cl...@us...> - 2003-09-25 20:35:51
|
Update of /cvsroot/todo-manager/todo-manager In directory sc8-pr-cvs1:/tmp/cvs-serv19301 Modified Files: main.py Log Message: While testing some of my experimental plugins with the new code I noticed that some of them wouldn't load the file and I'll I would get is a message box telling me that something was wrong with the file format. What was I thinking when I came up with that one??? A traceback will now be output to the terminal in the case of such an error. Ahhh, it's good to get back to the old stuff. Index: main.py =================================================================== RCS file: /cvsroot/todo-manager/todo-manager/main.py,v retrieving revision 1.83 retrieving revision 1.84 diff -u -d -r1.83 -r1.84 --- main.py 25 Sep 2003 19:11:53 -0000 1.83 +++ main.py 25 Sep 2003 20:35:47 -0000 1.84 @@ -24,7 +24,7 @@ from tdmcalls import * import plugin -import thread +import thread, traceback # Add the main source directory to the path for import operations sys.path.append(get_root_directory()) @@ -527,6 +527,8 @@ self.__tasks = tasks success = TRUE except: + # Print a traceback + traceback.print_exc() self.interface_call(ui, "display_error", _("Invalid Format"), _("The file %s is in an invalid format or "\ "is not readable by this plugin.") %filename) |