parent
8f2bc1e1c6
commit
d8777a78aa
1 changed files with 6 additions and 2 deletions
|
@ -1104,8 +1104,12 @@ class Logger:
|
||||||
|
|
||||||
:param account_jid: The jid of the account
|
:param account_jid: The jid of the account
|
||||||
"""
|
"""
|
||||||
|
try:
|
||||||
jid_id = self.get_jid_id(account_jid)
|
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 = '''
|
sql = '''
|
||||||
DELETE FROM roster_entry WHERE account_jid_id = {jid_id};
|
DELETE FROM roster_entry WHERE account_jid_id = {jid_id};
|
||||||
|
|
Loading…
Add table
Reference in a new issue