From: Max Value Date: Tue, 18 Mar 2025 03:33:17 +0000 (+0000) Subject: Added explicit encoding to sanity check X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=4201107a6d0636cf6193f937ba1bddd31b2dd9ee;p=shopping-channel Added explicit encoding to sanity check --- 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()