Browse Source

Changed ModuleNotFoundError to the more generic ImportError

master
Holger Frey 7 years ago
parent
commit
f28eb20241
  1. 2
      hooks/pre_gen_project.py

2
hooks/pre_gen_project.py

@ -15,7 +15,7 @@ try: @@ -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

Loading…
Cancel
Save