Fix encoding for JSON files

This commit is contained in:
hygienic-books 2022-03-20 02:28:14 +01:00
parent 0cfe47465d
commit 2905ff5c74

View File

@ -227,7 +227,7 @@ def validate_config_sections(
def query_string_from_file( def query_string_from_file(
filename: str) -> str: filename: str) -> str:
with open(filename, "r") as jsonfile: with open(filename, "r", encoding="utf-8") as jsonfile:
query_string = jsonfile.read() query_string = jsonfile.read()
return query_string return query_string