From: Guido van Rossum Date: Thu, 24 Sep 1992 09:14:44 +0000 (+0000) Subject: open() now raises IOError, not RuntimeError! X-Git-Tag: v0.9.8~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=590177bc884f9e382afb759e39729d7cae1aa4f1;p=thirdparty%2FPython%2Fcpython.git open() now raises IOError, not RuntimeError! --- diff --git a/Demo/stdwin/ibrowse/ifile.py b/Demo/stdwin/ibrowse/ifile.py index 584fb3493bc7..1ea880ea27ce 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