log deleted ids from db when user not found
This commit is contained in:
parent
54940b6326
commit
b828b0812f
1 changed files with 3 additions and 2 deletions
|
@ -471,9 +471,9 @@ async def eb(client, c, conn, con, d, get_id, my_id, message_q):
|
||||||
datetime.timestamp(event.date))
|
datetime.timestamp(event.date))
|
||||||
logger.warning(
|
logger.warning(
|
||||||
'Waiting for infection release... [For skip just bioeb somebody]')
|
'Waiting for infection release... [For skip just bioeb somebody]')
|
||||||
|
|
||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
@client.on(events.NewMessage(pattern='👺 Юзер не знайдений!', from_users=(avocado_id,)))
|
@client.on(events.NewMessage(pattern='👺 Юзер не знайдений!', from_users=(avocado_id,)))
|
||||||
async def avocado_404(event):
|
async def avocado_404(event):
|
||||||
if event.reply_to:
|
if event.reply_to:
|
||||||
|
@ -497,6 +497,7 @@ async def eb(client, c, conn, con, d, get_id, my_id, message_q):
|
||||||
try:
|
try:
|
||||||
c.execute("DELETE FROM avocado WHERE user_id = %d" % int(id))
|
c.execute("DELETE FROM avocado WHERE user_id = %d" % int(id))
|
||||||
conn.commit() # rm 404 id
|
conn.commit() # rm 404 id
|
||||||
|
logger.info(f'deleted {id}: 404')
|
||||||
except Exception as Err:
|
except Exception as Err:
|
||||||
logger.exception(f'err: {Err} in DELETE FROM avocado WHERE `user_id` = {id}')
|
logger.exception(f'err: {Err} in DELETE FROM avocado WHERE `user_id` = {id}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue