From 93f3439a11401e8f480d4a2658141ad03aa34cb2 Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 28 Jun 2023 08:59:40 +0200 Subject: [PATCH] Fixed response type check --- plugins/commands/photos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/photos.py b/plugins/commands/photos.py index d52e9f3..cdad7d8 100644 --- a/plugins/commands/photos.py +++ b/plugins/commands/photos.py @@ -338,7 +338,7 @@ async def cmd_remove(app: PyroClient, msg: Message): response = await func(id=answer_id.text, client=client) - if response: + if response is None: logger.info( "Removed %s '%s' by request of user %s", answer_kind.text,