Description of problem: ksflatten -v, --config fedora-live-workstation.ks -o flat-fedora-live-workstation.ks --version F26 Version-Release number of selected component: pykickstart-2.32-1.fc25 Additional info: reporter: libreport-2.8.0 cmdline: /usr/bin/python3 /usr/bin/ksflatten -v, --config fedora-live-workstation.ks -o flat-fedora-live-workstation.ks --version F26 executable: /usr/bin/ksflatten kernel: 4.8.15-300.fc25.x86_64 pkg_fingerprint: 4089 D8F2 FDB1 9C98 pkg_vendor: Fedora Project runlevel: N 5 type: Python3 uid: 1000 Truncated backtrace: version.py:139:stringToVersion:pykickstart.errors.KickstartVersionError: Použita nepodporovaná verze: F26 Traceback (most recent call last): File "/usr/lib/python3.5/site-packages/pykickstart/version.py", line 181, in returnClassForVersion version = int(version) ValueError: invalid literal for int() with base 10: 'F26' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/ksflatten", line 73, in <module> main() File "/usr/bin/ksflatten", line 49, in main ksversion = makeVersion(opts.version) File "/usr/lib/python3.5/site-packages/pykickstart/version.py", line 207, in makeVersion cl = returnClassForVersion(version) File "/usr/lib/python3.5/site-packages/pykickstart/version.py", line 185, in returnClassForVersion version = stringToVersion(cast(str, version)) File "/usr/lib/python3.5/site-packages/pykickstart/version.py", line 139, in stringToVersion raise KickstartVersionError(_("Unsupported version specified: %s") % s) pykickstart.errors.KickstartVersionError: Použita nepodporovaná verze: F26 Local variables in innermost frame: m: None s: 'F26'
Created attachment 1239506 [details] File: backtrace
Created attachment 1239507 [details] File: environ
The app should not traceback on the user when the version is invalid.
Thanks for the bug report - I've fixed this on master and pykickstart-2 branches. It'll be fixed in pykickstart-2.34-1, which I will probably build today or at least in the next several days.
Thanks. Just curious - What's the reason behind localizing messages in exceptions?
pykickstart-2.34-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-fa3fe5de83
pykickstart-2.34-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.