dabo Commit
Revision 4283
Date: 2008-07-16 10:33:08 -0700 (Wed, 16 Jul 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4283

Changed:
U   trunk/dabo/ui/uiwx/dEditor.py

Log:
Fixed an uncaught exception that happens when typing gibberish into the editor 
and then having Python try to understand it.


Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2008-07-16 15:26:37 UTC (rev 4282)
+++ trunk/dabo/ui/uiwx/dEditor.py       2008-07-16 17:33:08 UTC (rev 4283)
@@ -1770,7 +1770,7 @@
                        if len(innerObjectNames) > 0:
                                try:
                                        o = eval("o.%s" % innerObjectNames)
-                               except AttributeError:
+                               except (AttributeError, SyntaxError):
                                        o = None
                return o
        




_______________________________________________
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