dabo Commit
Revision 5565
Date: 2009-12-27 10:03:04 -0800 (Sun, 27 Dec 2009)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5565

Changed:
U   trunk/dabo/ui/__init__.py

Log:
Improved the error reporting when loadUI() fails. 


Diff:
Modified: trunk/dabo/ui/__init__.py
===================================================================
--- trunk/dabo/ui/__init__.py   2009-12-27 18:01:40 UTC (rev 5564)
+++ trunk/dabo/ui/__init__.py   2009-12-27 18:03:04 UTC (rev 5565)
@@ -57,9 +57,10 @@
                try:
                        exec("from %s import *" % mods[typ], globals())
                        retVal = True
-               except Exception:
+               except Exception, e:
                        retVal = False
                        # Record the actual problem
+                       print _("ui.loadUI failed: %s") % e
                        traceback.print_exc()
        else:
                if currType == typ:



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to