From 2fbdef17395ae34c73263c7efd59edef96f98e28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 20 Jul 2020 11:50:20 +0200 Subject: [PATCH] fixed invalid cert error on python 3 --- client-py3/full/src/uds/rest.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client-py3/full/src/uds/rest.py b/client-py3/full/src/uds/rest.py index 3168bb1d..48a0ea51 100644 --- a/client-py3/full/src/uds/rest.py +++ b/client-py3/full/src/uds/rest.py @@ -72,8 +72,6 @@ class RestRequest(QObject): self.done.connect(done, Qt.QueuedConnection) - # private slot, no need to declare as slot - @pyqtSlot(QNetworkReply) def _finished(self, reply): ''' Handle signal 'finished'. A network request has finished. @@ -95,15 +93,13 @@ class RestRequest(QObject): reply.deleteLater() # schedule for delete from main event loop - #@pyqtSlot(QNetworkReply, list) - @pyqtSlot(QNetworkReply) def _sslError(self, reply, errors): settings = QSettings() settings.beginGroup('ssl') cert = errors[0].certificate() digest = six.text_type(cert.digest().toHex()) - approved = settings.value(digest, False).toBool() + approved = settings.value(digest, False) errorString = '

The certificate for {} has the following errors: