eric6/PluginManager/PluginRepositoryDialog.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8234
fcb6b4b96274
--- a/eric6/PluginManager/PluginRepositoryDialog.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/PluginManager/PluginRepositoryDialog.py	Sun Apr 11 18:45:10 2021 +0200
@@ -534,9 +534,8 @@
         @param reply reference to the network reply
         @type QNetworkReply
         """
-        if reply is None:
-            if self.__replies:
-                reply = self.__replies[0]
+        if reply is None and bool(self.__replies):
+            reply = self.__replies[0]
         self.__pluginsToDownload = []
         if reply is not None:
             reply.abort()

eric ide

mercurial