dabo Commit
Revision 4246
Date: 2008-07-08 09:01:32 -0700 (Tue, 08 Jul 2008)
Author: Nate
Trac: http://svn.dabodev.com/trac/dabo/changeset/4246

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

Log:
If you call open and the file doesn't exist, you will get an IOError instead of 
a OSError.

Diff:
Modified: trunk/dabo/ui/uiwx/dEditor.py
===================================================================
--- trunk/dabo/ui/uiwx/dEditor.py       2008-07-07 15:57:01 UTC (rev 4245)
+++ trunk/dabo/ui/uiwx/dEditor.py       2008-07-08 16:01:32 UTC (rev 4246)
@@ -1499,7 +1499,7 @@
                                f = open(fileSpec, "rb")
                                text = f.read().decode(self.Encoding)
                                f.close()
-                       except OSError:
+                       except IOError:
                                if os.path.exists(fileSpec):
                                        dabo.ui.stop("Could not open %s.  
Please check that you have read permissions." % fileSpec)
                                        return False




_______________________________________________
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