Bug 2402655 - fontquery-diff raise a KeyError Exception on LXDE
Summary: fontquery-diff raise a KeyError Exception on LXDE
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-fontquery
Version: 43
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-09 06:24 UTC by Akira TAGOH
Modified: 2025-10-25 21:04 UTC (History)
1 user (show)

Fixed In Version: python-fontquery-1.28-1.fc44 python-fontquery-1.28-1.fc43
Clone Of:
Environment:
Last Closed: 2025-10-09 08:06:35 UTC
Type: ---
Embargoed:
tagoh: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-2475 0 None None None 2025-10-09 07:26:07 UTC

Description Akira TAGOH 2025-10-09 06:24:38 UTC
Traceback (most recent call last):
  File "/usr/bin/fontquery-client", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 310, in main
    print(fccmd[args.mode](args))
          ~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 135, in dump
    repo = PackageRepo(cache, pkgname, data[1], get_version(os_release))
                                                ~~~~~~~~~~~^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/fontquery/client.py", line 77, in get_version
    if os_release['VARIANT_ID'] == 'eln' or\
       ~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'VARIANT_ID'


Reproducible: Always

Steps to Reproduce:
1.try fontquery-diff on LXDE
2.
3.
Actual Results:
Exception like the above

Expected Results:
No exceptions

Additional Information:
Apparently /etc/os-release on LXDE doesn't have VARIANT_ID which may be optional (https://www.freedesktop.org/software/systemd/man/latest/os-release.html#VARIANT_ID= )

Comment 1 Fedora Update System 2025-10-09 07:50:49 UTC
FEDORA-2025-3aa4a4e488 (python-fontquery-1.28-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-3aa4a4e488

Comment 2 Fedora Update System 2025-10-09 07:58:13 UTC
FEDORA-2025-4ed5d7b627 (python-fontquery-1.28-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4ed5d7b627

Comment 3 Fedora Update System 2025-10-09 08:06:35 UTC
FEDORA-2025-3aa4a4e488 (python-fontquery-1.28-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2025-10-10 01:25:50 UTC
FEDORA-2025-4ed5d7b627 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-4ed5d7b627`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-4ed5d7b627

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-10-25 21:04:31 UTC
FEDORA-2025-4ed5d7b627 (python-fontquery-1.28-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.