From af1db75e3394d3d46c3f6e7f2a69796e044207ad Mon Sep 17 00:00:00 2001 From: Chris Sewell Date: Fri, 10 Jul 2020 12:28:55 +0100 Subject: [PATCH] do not parse None value to setup command --- aiida/cmdline/commands/cmd_setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aiida/cmdline/commands/cmd_setup.py b/aiida/cmdline/commands/cmd_setup.py index fbfbf8b23c..8833dd72c1 100644 --- a/aiida/cmdline/commands/cmd_setup.py +++ b/aiida/cmdline/commands/cmd_setup.py @@ -168,4 +168,6 @@ def quicksetup( 'db_password': db_password, 'repository': repository, } + # we remove None values, because invoke appears to parse it as a string, i.e None -> "None" + setup_parameters = {k: v for k, v in setup_parameters.items() if v is not None} ctx.invoke(setup, **setup_parameters)