From 590177bc884f9e382afb759e39729d7cae1aa4f1 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 24 Sep 1992 09:14:44 +0000 Subject: [PATCH] open() now raises IOError, not RuntimeError! --- Demo/stdwin/ibrowse/ifile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Demo/stdwin/ibrowse/ifile.py b/Demo/stdwin/ibrowse/ifile.py index 584fb3493bc..1ea880ea27c 100755 --- a/Demo/stdwin/ibrowse/ifile.py +++ b/Demo/stdwin/ibrowse/ifile.py @@ -311,7 +311,7 @@ def try_open(file): for dir in INFOPATH: try: return open(dir + file, 'r') - except RuntimeError: + except IOError: pass raise NoSuchFile, file