mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix flake8 violation
This commit is contained in:
parent
331003b051
commit
44edaa1bb6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user