Red Hat Bugzilla – Bug 1048488
AssertionError on invalid error log level
Last modified: 2014-09-30 19:41:59 EDT
Description of problem:
dnf probably doesn't handle AssertionError exception when an invalid argument is passed from command line.
Version-Release number of selected component:
Steps to Reproduce:
dnf info -e 11
or any other command, using -e 11.
Traceback (most recent call last):
File "/usr/bin/dnf", line 35, in <module>
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 240, in user_main
errcode = main(args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 63, in main
return _main(base, args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 101, in _main
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1315, in configure
self.read_conf_file(opts.conffile, root, releasever, overrides)
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1421, in read_conf_file
File "/usr/lib/python2.7/site-packages/dnf/logging.py", line 160, in setup_from_dnf_conf
error_level_r = _cfg_err_val2level(conf.errorlevel)
File "/usr/lib/python2.7/site-packages/dnf/logging.py", line 80, in _cfg_err_val2level
assert(0 <= cfg_errval <= 10)
Expected some textual error
Radek I guess this one's for you.
oh hang on, actually not:)
Fixed upstream by c2ab539.
dnf-0.4.12-1.fc20 has been submitted as an update for Fedora 20.
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.4.12-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-0.4.12-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.