log deleted ids from db when user not found

This commit is contained in:
Your Name 2025-01-04 03:59:30 +03:00
parent 54940b6326
commit b828b0812f

View file

@ -497,6 +497,7 @@ async def eb(client, c, conn, con, d, get_id, my_id, message_q):
try:
c.execute("DELETE FROM avocado WHERE user_id = %d" % int(id))
conn.commit() # rm 404 id
logger.info(f'deleted {id}: 404')
except Exception as Err:
logger.exception(f'err: {Err} in DELETE FROM avocado WHERE `user_id` = {id}')