From 86d992efa07e8b43fa19502b8b6fac4a40b14dfb Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Sat, 9 Sep 2023 22:41:39 +0100 Subject: [PATCH] Fix stupid oianwgionaoiwgnonwg --- cogs/other.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 2af020f..08a7b9b 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1012,7 +1012,6 @@ class OtherCog(commands.Cog): try: bak = file.with_name(file.name + "-" + os.urandom(4).hex()) shutil.copy(str(file), str(bak)) - file.unlink() minutes, seconds = divmod(timestamp, 60) hours, minutes = divmod(minutes, 60) _args = [ @@ -1039,7 +1038,7 @@ class OtherCog(commands.Cog): capture_output=True ) ) - shutil.move(str(bak), str(file)) + bak.unlink(True) except subprocess.CalledProcessError as e: traceback.print_exc() return await ctx.edit(