Fix flake8 violation

This commit is contained in:
Takeshi KOMIYA 2018-10-28 21:04:11 +09:00
parent 331003b051
commit 44edaa1bb6

View File

@ -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):