New release with a bug fix. release-10.2.4

Mon, 29 Jul 2024 11:58:20 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 29 Jul 2024 11:58:20 +0200
changeset 47
b898d1a77ab0
parent 46
0f1269b533a6
child 48
9d656b3845c1

New release with a bug fix.

PipxInterface/PipxWidget.py file | annotate | diff | comparison | revisions
PluginPipxInterface.py file | annotate | diff | comparison | revisions
PluginPipxInterface.zip file | annotate | diff | comparison | revisions
changelog.md file | annotate | diff | comparison | revisions
--- a/PipxInterface/PipxWidget.py	Mon Jul 29 11:40:05 2024 +0200
+++ b/PipxInterface/PipxWidget.py	Mon Jul 29 11:58:20 2024 +0200
@@ -7,6 +7,7 @@
 Module implementing the pipx management widget.
 """
 
+import contextlib
 import os
 
 import psutil
@@ -593,12 +594,16 @@
             if package in expandedPackages:
                 itm.setExpanded(True)
 
-            if package in outdatedPackages:
+            with contextlib.suppress(KeyError):
                 latestVersion, outdatedDependencies = outdatedPackages[package]
-                if itm.data(0, PipxWidget.VersionRole) != latestVersion:
+                if (
+                    latestVersion is not None
+                    and itm.data(0, PipxWidget.VersionRole) != latestVersion
+                ):
                     self.__markPackageOutdated(itm, latestVersion, outdatedDependencies)
                 elif (
-                    itm.data(0, PipxWidget.OutdatedDependenciesRole)
+                    outdatedDependencies is not None
+                    and itm.data(0, PipxWidget.OutdatedDependenciesRole)
                     != outdatedDependencies
                     and outdatedDependencies
                 ):
--- a/PluginPipxInterface.py	Mon Jul 29 11:40:05 2024 +0200
+++ b/PluginPipxInterface.py	Mon Jul 29 11:58:20 2024 +0200
@@ -36,7 +36,7 @@
     "author": "Detlev Offenbach <detlev@die-offenbachs.de>",
     "autoactivate": True,
     "deactivateable": True,
-    "version": "10.2.3",
+    "version": "10.2.4",
     "className": "PluginPipxInterface",
     "packageName": "PipxInterface",
     "shortDescription": "Graphical interface to the 'pipx' command.",
Binary file PluginPipxInterface.zip has changed
--- a/changelog.md	Mon Jul 29 11:40:05 2024 +0200
+++ b/changelog.md	Mon Jul 29 11:58:20 2024 +0200
@@ -1,6 +1,10 @@
 ChangeLog
 ---------
 
+__Version 10.2.4__
+
+- bug fixes
+
 __Version 10.2.3__
 
 - Updated Russian translations.

eric ide

mercurial