summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index 86cba8b1..61e5e7f9 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -106,7 +106,7 @@ class AstroidBuilder(raw_building.InspectBuilder):
"""
try:
stream, encoding, data = open_source_file(path)
- except IOError as exc:
+ except OSError as exc:
raise exceptions.AstroidBuildingError(
"Unable to load file {path}:\n{error}",
modname=modname,