]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
open() now raises IOError, not RuntimeError!
authorGuido van Rossum <guido@python.org>
Thu, 24 Sep 1992 09:14:44 +0000 (09:14 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 Sep 1992 09:14:44 +0000 (09:14 +0000)
Demo/stdwin/ibrowse/ifile.py

index 584fb3493bc7ac297d64c930131b30ae290d1ccd..1ea880ea27ce69bb2e27344e7ac9b1ae4ac11798 100755 (executable)
@@ -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