[PATCH 2/4] parsemail: Fix default value of verbosity argument

Finucane, Stephen stephen.finucane at intel.com
Tue Mar 29 19:51:58 AEDT 2016


On 27 Mar 12:53, Jeremy Kerr wrote:
> 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 at ozlabs.org>

Acked-by: Stephen Finucane <stephen.finucane at intel.com>


More information about the Patchwork mailing list