Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 590177b

Browse files
committed
open() now raises IOError, not RuntimeError!
1 parent c431549 commit 590177b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Demo/stdwin/ibrowse/ifile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def try_open(file):
311311
for dir in INFOPATH:
312312
try:
313313
return open(dir + file, 'r')
314-
except RuntimeError:
314+
except IOError:
315315
pass
316316
raise NoSuchFile, file
317317

0 commit comments

Comments
 (0)