From b4bb64fcfde32cf95708f66beb137f32e2abf5d7 Mon Sep 17 00:00:00 2001 From: shtlrs Date: Sun, 12 Mar 2023 18:13:10 +0100 Subject: change mode to "wb" --- botstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'botstrap.py') diff --git a/botstrap.py b/botstrap.py index 55e1bb6c7..90a954d9b 100644 --- a/botstrap.py +++ b/botstrap.py @@ -165,5 +165,5 @@ with DiscordClient() as discord_client: config_str += "\n#Emojis\n" config_str += "emojis_trashcan=🗑️" - with env_file_path.open("ab") as file: + with env_file_path.open("wb") as file: file.write(config_str.encode("utf-8")) -- cgit v1.2.3