summaryrefslogtreecommitdiff
path: root/sphinx/util/osutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/osutil.py')
-rw-r--r--sphinx/util/osutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/osutil.py b/sphinx/util/osutil.py
index bbcf53525..fb9a2cfa1 100644
--- a/sphinx/util/osutil.py
+++ b/sphinx/util/osutil.py
@@ -88,7 +88,7 @@ def ensuredir(path):
"""Ensure that a path exists."""
try:
os.makedirs(path)
- except OSError as err:
+ except OSError:
# If the path is already an existing directory (not a file!),
# that is OK.
if not os.path.isdir(path):