We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
utf-8
1 parent e14aee9 commit b64c8b1Copy full SHA for b64c8b1
bot.py
@@ -143,7 +143,8 @@ async def init_db(self) -> None:
143
f"{os.path.realpath(os.path.dirname(__file__))}/database/database.db"
144
) as db:
145
with open(
146
- f"{os.path.realpath(os.path.dirname(__file__))}/database/schema.sql"
+ f"{os.path.realpath(os.path.dirname(__file__))}/database/schema.sql",
147
+ encoding = "utf-8"
148
) as file:
149
await db.executescript(file.read())
150
await db.commit()
0 commit comments