Skip to content

Commit 03c8ce4

Browse files
committed
Fixed encoding issue when creating config
1 parent 2a040a2 commit 03c8ce4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
import os
33
import signal
44

5+
from utils import config
56
from utils import files
67

8+
config.create_config()
79
files.check_files()
810

911
from utils import webhooks as webhook
1012
from utils import checker
1113
from utils import console
12-
from utils import config
1314

1415
archive_name = ""
1516
checked = 0

utils/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def check_files():
2424
f.write("")
2525

2626
if not os.path.isfile("data/swears.txt"):
27-
with open("data/swears.txt", "w") as f:
27+
with open("data/swears.txt", "w", encoding="UTF-8") as f:
2828
for swear in get_swears():
2929
f.write(f"{swear}\n")
3030

0 commit comments

Comments
 (0)