require a non-empty name for blueprints
This commit is contained in:
parent
7ee9ceb71e
commit
b8b410014d
3 changed files with 10 additions and 0 deletions
|
|
@ -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.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue