eric6/WebBrowser/Network/SslErrorExceptionsDialog.py

changeset 8243
cc717c2ae956
parent 8218
7c09585bd960
--- a/eric6/WebBrowser/Network/SslErrorExceptionsDialog.py	Thu Apr 15 16:52:05 2021 +0200
+++ b/eric6/WebBrowser/Network/SslErrorExceptionsDialog.py	Thu Apr 15 18:11:24 2021 +0200
@@ -68,28 +68,14 @@
             .CertificateNameConstraintViolation:
                 self.tr("The certificate claimed DNS names that are in"
                         " violation of name constraints."),
+            QWebEngineCertificateError.Error.CertificateValidityTooLong:
+                self.tr("The certificate has a validity period that is"
+                        " too long."),
+            QWebEngineCertificateError.Error.CertificateTransparencyRequired:
+                self.tr("Certificate Transparency was required for this"
+                        " connection, but the server did not provide"
+                        " information that complied with the policy."),
         }
-        try:
-            self.__errorDescriptions[
-                QWebEngineCertificateError.Error.CertificateValidityTooLong
-            ] = self.tr(
-                "The certificate has a validity period that is too long."
-            )
-        except AttributeError:
-            # the value was added in Qt 5.7
-            pass
-        try:
-            self.__errorDescriptions[
-                QWebEngineCertificateError.Error
-                .CertificateTransparencyRequired
-            ] = self.tr(
-                "Certificate Transparency was required for this"
-                " connection, but the server did not provide"
-                " information that complied with the policy."
-            )
-        except AttributeError:
-            # the value was added in Qt 5.8
-            pass
         
         for host, errors in errorsDict.items():
             itm = QTreeWidgetItem(self.errorsTree, [host])

eric ide

mercurial