From c6dd96a416bfcbb50cec192c3e423ca9ee33394c Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 1 Apr 2016 13:54:57 +0100 Subject: [PATCH] parsearchive: Fix default value of verbosity argument With the current parsearchive.py, the default value for the verbosity argument does not exist in the VERBOSITY_LEVELS dict, so we get: Traceback (most recent call last): File "./patchwork/bin/parsemail.py", line 569, in sys.exit(main(sys.argv)) File "./patchwork/bin/parsemail.py", line 555, in main logging.basicConfig(level=VERBOSITY_LEVELS[args['verbosity']]) KeyError: 20 This change uses an actual key instead. Signed-off-by: Stephen Finucane --- patchwork/bin/parsearchive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/bin/parsearchive.py b/patchwork/bin/parsearchive.py index a10d9d63..0149275a 100755 --- a/patchwork/bin/parsearchive.py +++ b/patchwork/bin/parsearchive.py @@ -69,7 +69,7 @@ def main(): group.add_argument('--list-id', help='mailing list ID. If not supplied ' 'this will be extracted from the mail headers.') group.add_argument('--verbosity', choices=list_logging_levels(), - help='debug level', default=logging.INFO) + help='debug level', default='info') args = vars(parser.parse_args()) -- 2.47.3