Skip to content
Snippets Groups Projects
Commit 2b1a22ec authored by Philipp Hörist's avatar Philipp Hörist
Browse files

SSLErrorDialog: Fix pylint errors

parent bd6675d2
No related branches found
No related tags found
No related merge requests found
......@@ -94,12 +94,12 @@ def _on_connect_clicked(self, _button):
certs = ''
my_ca_certs = configpaths.get('MY_CACERTS')
if os.path.isfile(my_ca_certs):
with open(my_ca_certs, encoding='utf-8') as f:
certs = f.read()
with open(my_ca_certs, encoding='utf-8') as file_:
certs = file_.read()
if pem not in certs:
with open(my_ca_certs, 'a', encoding='utf-8') as f:
f.write(self._server + '\n')
f.write(pem + '\n\n')
with open(my_ca_certs, 'a', encoding='utf-8') as file_:
file_.write(self._server + '\n')
file_.write(pem + '\n\n')
self.destroy()
self._con.process_ssl_errors()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment