Skip to content

Commit

Permalink
Allow hashing process to fail gracefully (close #335)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jul 6, 2022
1 parent 75a4426 commit fbf7407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CB/Core.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def parse_file(self, target):
if f.is_file():
self.filesToHash.append(f)
if not f.name.lower().endswith('.lua'):
with open(f, 'r', encoding='utf-8') as g:
with open(f, 'r', encoding='utf-8', errors='ignore') as g:
newfilestoparse = None
data = g.read()
if f.name.lower().endswith('.toc'):
Expand Down

0 comments on commit fbf7407

Please sign in to comment.