--- a/eric6/PipInterface/PipPackageDetailsDialog.py Sun Apr 11 16:53:48 2021 +0200 +++ b/eric6/PipInterface/PipPackageDetailsDialog.py Sun Apr 11 18:45:10 2021 +0200 @@ -193,13 +193,12 @@ text = self.tr("any") elif text is None: text = "" - if forUrl: - if ( - not isinstance(text, str) or - not text.startswith(("http://", "https://", "ftp://")) - ): - # ignore if the schema is not one of the listed ones - text = "" + if forUrl and ( + not isinstance(text, str) or + not text.startswith(("http://", "https://", "ftp://")) + ): + # ignore if the schema is not one of the listed ones + text = "" return text