Commit be5b7f61 authored by Saul Ibarra's avatar Saul Ibarra

Fixed deleting account without a TLS certificate

parent 07c2bcc4
......@@ -1034,7 +1034,7 @@ class PreferencesWindow(base_class, ui_class):
else:
account_manager.default_account = None
if selected_account.tls.certificate.normalized.startswith(ApplicationData.directory):
if selected_account.tls.certificate is not None and selected_account.tls.certificate.normalized.startswith(ApplicationData.directory):
try:
os.unlink(selected_account.tls.certificate.normalized)
except (AttributeError, OSError, IOError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment