Changeset 4246

Show
Ignore:
Timestamp:
07/08/2008 09:01:32 AM (1 month ago)
Author:
nate
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dEditor.py

    r4186 r4246  
    15001500                text = f.read().decode(self.Encoding) 
    15011501                f.close() 
    1502             except OSError: 
     1502            except IOError: 
    15031503                if os.path.exists(fileSpec): 
    15041504                    dabo.ui.stop("Could not open %s.  Please check that you have read permissions." % fileSpec)