From cf0b7b916ca89a094f2170587bd1a67f902e744b Mon Sep 17 00:00:00 2001 From: Amadeus Date: Tue, 6 Oct 2026 15:05:23 -0300 Subject: [PATCH] _flatpak.py: Fix NameError when an addon can't be added for removal The warning used addon_formatted_ref, which doesn't exist. Use the refid of the addon that failed. Co-Authored-By: Claude Opus 5.5 --- usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py b/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py index 927794d..79647a0 100644 --- a/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py +++ b/usr/lib/python3/dist-packages/mintcommon/installer/_flatpak.py @@ -534,7 +534,7 @@ def _transaction_thread(self): self.transaction.add_uninstall(addon_info.refid) except GLib.Error as e: if e.code != Flatpak.Error.NOT_INSTALLED: - warn("Could not add uninstall for addon '%s': %s" % (addon_formatted_ref, e.message)) + warn("Could not add uninstall for addon '%s': %s" % (addon_info.refid, e.message)) continue else: try: