Skip to content

Commit

Permalink
issue Serechops#37
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami958 committed Feb 15, 2025
1 parent 4144598 commit 8fceda1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/bulkImportPerformers/bulkImportPerformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def graphql_request(query, variables=None):

def read_performer_names(file_path):
try:
with open(file_path, 'r') as file:
# using utf-8 encoding can avoid error when the txt file contains Chinese.
with open(file_path, 'r', encoding="utf-8") as file:
names = [line.strip() for line in file.readlines()]
return names
except FileNotFoundError:
Expand Down

0 comments on commit 8fceda1

Please sign in to comment.