From 0c7fcd210ff3fb3fe4fa2065a415b4b7fde6b7a6 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Thu, 1 Aug 2019 23:14:00 +0200 Subject: [PATCH] Fix "--force set" without a value sneaking a None in --- scripts/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/config.py b/scripts/config.py index 382831acf..910594945 100755 --- a/scripts/config.py +++ b/scripts/config.py @@ -361,7 +361,8 @@ if __name__ == '__main__': found, unless --force is passed. """) parser_set.add_argument('symbol', metavar='SYMBOL') - parser_set.add_argument('value', metavar='VALUE', nargs='?') + parser_set.add_argument('value', metavar='VALUE', nargs='?', + default='') parser_unset = subparsers.add_parser('unset', help="""Comment out the #define for SYMBOL. Do nothing if none