]> 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:54:27 +0000 (09:54 +0100)
commitf0c10b90756e8fe902f1c743a0ae4460f39582be
treef33cb5830b3b806f58187f12c80b37bce5454b56
parent0984b831c420a8a9836258918c47c9aa5e575fba
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