]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsearchive: Fix default value of verbosity argument
authorStephen Finucane <stephen.finucane@intel.com>
Fri, 1 Apr 2016 12:54:57 +0000 (13:54 +0100)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 1 Apr 2016 12:54:57 +0000 (13:54 +0100)
commitc6dd96a416bfcbb50cec192c3e423ca9ee33394c
treebcac9ed6af525aa9d31575489d4cfd06e2b6a4fa
parente957b829e44147588a57d9dc8b0ccf24a9da8c36
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 <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: Stephen Finucane <stephen.finucane@intel.com>
patchwork/bin/parsearchive.py