Skip to content
Snippets Groups Projects
Commit 0ad8a05a authored by Nicolas Mielec's avatar Nicolas Mielec
Browse files

Python 2 compatibility fixes

FileExistsError to IOError
parent fdf6fc41
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ if not os.path.isfile(TEMPLATE_PATH):
import pkg_resources
try:
os.makedirs(config_path)
except FileExistsError:
except (IOError, OSError):
pass
package_path = os.path.dirname(os.path.realpath(__file__))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment