From 041544917cb3a4cee627b4e426b9985694bb07c6 Mon Sep 17 00:00:00 2001 From: Michal T Date: Tue, 21 Jan 2025 15:44:43 +0000 Subject: [PATCH] Literowka --- ai_commands.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ai_commands.py b/ai_commands.py index 47a0f44..381a6b2 100644 --- a/ai_commands.py +++ b/ai_commands.py @@ -377,12 +377,11 @@ class Events(commands.Cog): try: with open(temp_file_name, "wb") as dalle_file: dalle_file.write(response.content) - except OsError: + except OSError: temp_file_name = "oserror.png" with open(temp_file_name, "wb") as dalle_file: dalle_file.write(response.content) - self.logger.info("Koniec procedury obrazkowej.") fnord = discord.File( temp_file_name, spoiler=False, description=message.content