Small fixes
This commit is contained in:
parent
d2b0bb2f55
commit
38db3ea0f7
2 changed files with 5 additions and 3 deletions
|
|
@ -70,7 +70,7 @@ def main():
|
|||
'filter': lambda x: False if x.lower() == 'false' else x
|
||||
})
|
||||
args = prompt(args_questions)
|
||||
args = {k: types[k](v) for k, v in args.items()}
|
||||
args = {k: types[k](v) if len(v) > 0 else None for k, v in args.items()}
|
||||
try:
|
||||
output = method(**args)
|
||||
if output is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue