From f28eb20241546888503635bed0823d8ce01e75cb Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 12 Dec 2017 16:44:20 +0100 Subject: [PATCH] Changed ModuleNotFoundError to the more generic ImportError --- hooks/pre_gen_project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index 6387e8f..d77aafa 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -15,7 +15,7 @@ try: import {{ cookiecutter.directory_name }} print('ERROR: %s is an existing Python module!' % module_name) sys.exit(2) -except ModuleNotFoundError: +except ImportError: pass wiki_path = Path(MOIN_PATH) / module_name