Skip to content

Commit

Permalink
set encoding for resource file read
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Martin <[email protected]>
  • Loading branch information
jmartin-tech committed Apr 24, 2024
1 parent e12df92 commit b2ff9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion garak/probes/leakreplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self):
"""
self.prompts = []
self.triggers = []
with open(resources / self.source_file) as f:
with open(resources / self.source_file, encoding="utf-8") as f:
r = csv.reader(f, delimiter="\t")
for row in r:
if len(row) != 2:
Expand Down

0 comments on commit b2ff9f6

Please sign in to comment.