From 4201107a6d0636cf6193f937ba1bddd31b2dd9ee Mon Sep 17 00:00:00 2001 From: Max Value Date: Tue, 18 Mar 2025 03:33:17 +0000 Subject: [PATCH] Added explicit encoding to sanity check --- teleshopping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleshopping.py b/teleshopping.py index 170fb26..bc1cd41 100755 --- a/teleshopping.py +++ b/teleshopping.py @@ -218,7 +218,7 @@ def generate_docs(): print(f" - Generated {document}") # sanity check on the db -with open(path.join(app.root_path, "schema"), "r") as f: +with open(path.join(app.root_path, "schema"), "r", encoding="utf-8") as f: schema, load = f.read().split("\n\n") with sqlite3.connect(path.join(app.root_path, "data.db")) as connection: cursor = connection.cursor() -- 2.39.2