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