eric6/E5Network/E5SslInfoWidget.py

changeset 7945
76daafe10009
parent 7923
91e843545d9a
child 8043
0acf98cd089a
child 8143
2c730d5fd177
--- a/eric6/E5Network/E5SslInfoWidget.py	Sat Jan 02 17:28:57 2021 +0100
+++ b/eric6/E5Network/E5SslInfoWidget.py	Sun Jan 03 15:33:39 2021 +0100
@@ -155,14 +155,10 @@
                 sslVersion = "TLS 1.2"
                 imageLabel.setPixmap(
                     UI.PixmapCache.getPixmap("securityHigh32"))
-            try:
-                # Qt 5.12 and newer
-                if proto == QSsl.TlsV1_2:
-                    sslVersion = "TLS 1.2"
-                    imageLabel.setPixmap(
-                        UI.PixmapCache.getPixmap("securityHigh32"))
-            except AttributeError:
-                pass
+            elif proto == QSsl.TlsV1_3:
+                sslVersion = "TLS 1.3"
+                imageLabel.setPixmap(
+                    UI.PixmapCache.getPixmap("securityHigh32"))
             rows += 1
             
             label = QLabel(self)

eric ide

mercurial