112 def on_viewButton_clicked(self): |
112 def on_viewButton_clicked(self): |
113 """ |
113 """ |
114 Private slot to show data of the selected certificate. |
114 Private slot to show data of the selected certificate. |
115 """ |
115 """ |
116 with contextlib.suppress(ImportError): |
116 with contextlib.suppress(ImportError): |
117 from .EricSslCertificatesInfoDialog import ( # noqa: I101 |
117 from .EricSslCertificatesInfoDialog import ( # noqa: I-101 |
118 EricSslCertificatesInfoDialog, |
118 EricSslCertificatesInfoDialog, |
119 ) |
119 ) |
120 |
120 |
121 cert = QSslCertificate.fromData( |
121 cert = QSslCertificate.fromData( |
122 self.certificatesTree.selectedItems()[0].data(0, self.CertRole) |
122 self.certificatesTree.selectedItems()[0].data(0, self.CertRole) |