From 79745cb2d6441e088f19cdb2edfa3644bc55516a Mon Sep 17 00:00:00 2001 From: Furry Chemistry <84753790+aryazakaria01@users.noreply.github.com> Date: Sun, 30 Jun 2024 18:07:03 +0700 Subject: [PATCH] fix LOGGING is not definied and better to use lazy formatting (#299) Signed-off-by: Furry Chemistry <84753790+aryazakaria01@users.noreply.github.com> --- misskaty/plugins/download_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/download_upload.py b/misskaty/plugins/download_upload.py index 2a8164c6..97efc114 100644 --- a/misskaty/plugins/download_upload.py +++ b/misskaty/plugins/download_upload.py @@ -261,7 +261,7 @@ async def twitterdl(_, message): path = obj.get_dest() await message.reply_video(path, caption=f"{fname}\n\nUploaded for {message.from_user.mention} [{message.from_user.id}]",) except Exception as er: - LOGGING.error(f"ERROR: while fetching TwitterDL. {er}") + LOGGER.error("ERROR: while fetching TwitterDL. %s", er) return await msg.edit_msg("ERROR: Got error while extracting link.") await msg.delete() except Exception as e: