require a non-empty name for blueprints

This commit is contained in:
Evgeny Mozhaev 2023-03-04 21:09:34 +03:00 committed by David Lord
parent 7ee9ceb71e
commit b8b410014d
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
3 changed files with 10 additions and 0 deletions

View file

@ -190,6 +190,9 @@ class Blueprint(Scaffold):
root_path=root_path,
)
if not name:
raise ValueError("'name' may not be empty.")
if "." in name:
raise ValueError("'name' may not contain a dot '.' character.")