dabo Commit
Revision 4364
Date: 2008-08-06 10:52:12 -0700 (Wed, 06 Aug 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4364

Changed:
U   trunk/ide/ClassDesignerComponents.py

Log:
Fixed exceptions to include the one's I had overwritten in the previous commit.

Diff:
Modified: trunk/ide/ClassDesignerComponents.py
===================================================================
--- trunk/ide/ClassDesignerComponents.py        2008-08-06 17:27:01 UTC (rev 
4363)
+++ trunk/ide/ClassDesignerComponents.py        2008-08-06 17:52:12 UTC (rev 
4364)
@@ -66,11 +66,11 @@
                                        # First-time save. Get the classID of 
the parent
                                        try:
                                                classID = 
self.Parent.classID.split("-")[0]
-                                       except AttributeError:
+                                       except (IndexError, AttributeError):
                                                # Try the sizer
                                                        try:
                                                                classID = 
self.ControllingSizer.classID.split("-")[0]
-                                                       except AttributeError:
+                                                       except (IndexError, 
AttributeError):
                                                                classID = 
"?????"
                                ra["classID"] = "%s-%s" % (classID, myID)
                                self.classID = ra["classID"]




_______________________________________________
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