diff options
Diffstat (limited to 'Lib/idlelib/textView.py')
| -rw-r--r-- | Lib/idlelib/textView.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/textView.py b/Lib/idlelib/textView.py index 1eaa464..ae1f195 100644 --- a/Lib/idlelib/textView.py +++ b/Lib/idlelib/textView.py @@ -66,7 +66,7 @@ def view_file(parent, title, filename, encoding=None, modal=True):      try:          with open(filename, 'r', encoding=encoding) as file:              contents = file.read() -    except IOError: +    except OSError:          import tkinter.messagebox as tkMessageBox          tkMessageBox.showerror(title='File Load Error',                                 message='Unable to load file %r .' % filename,  | 
