From 44edaa1bb6771d3d2a3b7baf7c7fae726e38383f Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 28 Oct 2018 21:04:11 +0900 Subject: [PATCH] Fix flake8 violation --- sphinx/util/osutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):