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 ...@@ -784,7 +784,7 @@ Files and Directories
try: try:
fp = open("myfile") fp = open("myfile")
except OSError as e: except IOError as e:
if e.errno == errno.EACCESS: if e.errno == errno.EACCESS:
return "some default data" return "some default data"
# Not a permission error. # 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