]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail: Fix default value of verbosity argument
authorJeremy Kerr <jk@ozlabs.org>
Sun, 27 Mar 2016 04:53:04 +0000 (12:53 +0800)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 29 Mar 2016 08:57:14 +0000 (09:57 +0100)
commitf3660e811969cd8e786b37434b48b469721fad01
tree2217bb1c3c393c8580a4a64e9252b0118eb15c92
parentf7a2dbeac528cfca30cbdb1c0a70d62efaf9c964
parsemail: Fix default value of verbosity argument

With the current parsemail.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 <module>
      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: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/bin/parsemail.py