Commit 2340986f authored by Benjamin Peterson's avatar Benjamin Peterson

this should actually be an IOError

parent 249b508c
......@@ -784,7 +784,7 @@ Files and Directories
try:
fp = open("myfile")
except OSError as e:
except IOError as e:
if e.errno == errno.EACCESS:
return "some default data"
# Not a permission error.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment