mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Literowka
This commit is contained in:
+1
-2
@@ -377,12 +377,11 @@ class Events(commands.Cog):
|
|||||||
try:
|
try:
|
||||||
with open(temp_file_name, "wb") as dalle_file:
|
with open(temp_file_name, "wb") as dalle_file:
|
||||||
dalle_file.write(response.content)
|
dalle_file.write(response.content)
|
||||||
except OsError:
|
except OSError:
|
||||||
temp_file_name = "oserror.png"
|
temp_file_name = "oserror.png"
|
||||||
with open(temp_file_name, "wb") as dalle_file:
|
with open(temp_file_name, "wb") as dalle_file:
|
||||||
dalle_file.write(response.content)
|
dalle_file.write(response.content)
|
||||||
|
|
||||||
|
|
||||||
self.logger.info("Koniec procedury obrazkowej.")
|
self.logger.info("Koniec procedury obrazkowej.")
|
||||||
fnord = discord.File(
|
fnord = discord.File(
|
||||||
temp_file_name, spoiler=False, description=message.content
|
temp_file_name, spoiler=False, description=message.content
|
||||||
|
|||||||
Reference in New Issue
Block a user