Fixed response type check
This commit is contained in:
parent
9e0a815062
commit
93f3439a11
@ -338,7 +338,7 @@ async def cmd_remove(app: PyroClient, msg: Message):
|
|||||||
|
|
||||||
response = await func(id=answer_id.text, client=client)
|
response = await func(id=answer_id.text, client=client)
|
||||||
|
|
||||||
if response:
|
if response is None:
|
||||||
logger.info(
|
logger.info(
|
||||||
"Removed %s '%s' by request of user %s",
|
"Removed %s '%s' by request of user %s",
|
||||||
answer_kind.text,
|
answer_kind.text,
|
||||||
|
Reference in New Issue
Block a user