diff --git a/hooks/pre_gen_project.py b/hooks/pre_gen_project.py index 6d9c2ba..39ee4f6 100644 --- a/hooks/pre_gen_project.py +++ b/hooks/pre_gen_project.py @@ -7,7 +7,7 @@ project_slug = '{{ cookiecutter.project_slug }}' if not re.match(MODULE_REGEX, project_slug): - print('ERROR: %s is not a valid Python module name!' % project_slug) + print(f'ERROR: {project_slug} is not a valid Python module name!') # exits with status 1 to indicate failure sys.exit(1)