From 39cd72b4175eba224cf762a2f4429f765024feb1 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Tue, 6 Jun 2023 15:27:43 +0000 Subject: [PATCH] Forget --- misskaty/plugins/genss.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misskaty/plugins/genss.py b/misskaty/plugins/genss.py index e656c615..33c1c096 100644 --- a/misskaty/plugins/genss.py +++ b/misskaty/plugins/genss.py @@ -84,7 +84,7 @@ async def genss(self: Client, ctx: Message, strings): ms = (end_t - start_t).seconds await pesan.edit(f"Downloaded to {download_file_path} in {ms} seconds") try: - images = await take_ss(the_real_download_location) + images = await take_ss(download_file_path) await process.edit_msg(strings("up_progress")) await self.send_chat_action(chat_id=ctx.chat.id, action=enums.ChatAction.UPLOAD_PHOTO) try: @@ -109,14 +109,14 @@ async def genss(self: Client, ctx: Message, strings): await pesan.delete() try: os.remove(images) - os.remove(the_real_download_location) + os.remove(download_file_path) except: pass except Exception as exc: await ctx.reply_msg(strings("err_ssgen").format(exc=exc)) try: os.remove(images) - os.remove(the_real_download_location) + os.remove(download_file_path) except: pass elif replied and replied.media: