WebBrowser/Network/SslErrorExceptionsDialog.py

changeset 5201
21601e86a3f5
parent 4820
f38e4fb83ecd
child 5253
57276f763bf6
--- a/WebBrowser/Network/SslErrorExceptionsDialog.py	Tue Oct 04 18:09:31 2016 +0200
+++ b/WebBrowser/Network/SslErrorExceptionsDialog.py	Tue Oct 04 18:10:19 2016 +0200
@@ -69,6 +69,13 @@
                 self.tr("The certificate claimed DNS names that are in"
                         " violation of name constraints."),
         }
+        try:
+            self.__errorDescriptions[
+                QWebEngineCertificateError.CertificateValidityTooLong] = \
+            self.tr("The certificate has a validity period that is too long.")
+        except AttributeError:
+            # the value was added in Qt 5.7
+            pass
         
         for host, errors in errorsDict.items():
             itm = QTreeWidgetItem(self.errorsTree, [host])

eric ide

mercurial