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
parent
4cfef9c0ad
commit
ae23949ec0
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue