eric6/PipInterface/PipPackageDetailsDialog.py

changeset 8228
772103b14c18
parent 8222
5994b80b8760
child 8259
2bbec88047dd
--- a/eric6/PipInterface/PipPackageDetailsDialog.py	Mon Apr 12 19:05:23 2021 +0200
+++ b/eric6/PipInterface/PipPackageDetailsDialog.py	Mon Apr 12 19:21:40 2021 +0200
@@ -187,12 +187,10 @@
         @return processed text
         @rtype str
         """
-        if text == "UNKNOWN":
+        if text == "UNKNOWN" or text is None:
             text = ""
         elif text == "any":
             text = self.tr("any")
-        elif text is None:
-            text = ""
         if forUrl and (
             not isinstance(text, str) or
             not text.startswith(("http://", "https://", "ftp://"))

eric ide

mercurial