mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fixes for new --memory option, refs #694
This commit is contained in:
parent
ddd11b3ddd
commit
af9cd4ca64
2 changed files with 2 additions and 1 deletions
|
|
@ -160,6 +160,6 @@ def get_existing_services():
|
|||
|
||||
|
||||
def _validate_memory(ctx, param, value):
|
||||
if re.match(r"^\d+(Gi|G|Mi|M)$", value) is None:
|
||||
if value and re.match(r"^\d+(Gi|G|Mi|M)$", value) is None:
|
||||
raise click.BadParameter("--memory should be a number then Gi/G/Mi/M e.g 1Gi")
|
||||
return value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue