Declare file encoding to fix load failure (#84)

The backend would fail to boot on certain machines without the
encoding explicitly set.
dependabot/npm_and_yarn/frontend/urijs-1.19.11
Kris Gesling 2022-03-22 11:54:49 +09:30 committed by GitHub
parent 4cfef9c0ad
commit ae23949ec0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ class PromptsFS:
"""API Class for Prompt handling."""
def __init__(self):
self.data = []
with open(prompts_path, 'r') as f:
with open(prompts_path, 'r', encoding='utf8') as f:
prompts = csv.reader(f, delimiter="\t")
for p in prompts:
self.data.append(p[0])