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

Fix deleting an account that was never connected

Fixes #8951
parent 8f2bc1e1
No related branches found
No related tags found
No related merge requests found
......@@ -1104,8 +1104,12 @@ class Logger:
:param account_jid: The jid of the account
"""
jid_id = self.get_jid_id(account_jid)
try:
jid_id = self.get_jid_id(account_jid)
except ValueError:
# This happens if the JID never made it to the Database
# because the account was never connected
return
sql = '''
DELETE FROM roster_entry WHERE account_jid_id = {jid_id};
......
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