From fbf7407671fa227747a6cb3b5eecdec3aa33b5ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Wed, 6 Jul 2022 09:05:48 +0200 Subject: [PATCH] Allow hashing process to fail gracefully (close #335) --- CB/Core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CB/Core.py b/CB/Core.py index 7a2da98..b8ea856 100644 --- a/CB/Core.py +++ b/CB/Core.py @@ -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'):