From df0a70ce3693a732f550f246229d54c500e47cd8 Mon Sep 17 00:00:00 2001 From: Mathieu Rivest Date: Wed, 14 Jul 2021 14:10:58 -0400 Subject: [PATCH] Prevent errors when reading bundle --- analyzer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analyzer.py b/analyzer.py index f42448a..21b4d12 100644 --- a/analyzer.py +++ b/analyzer.py @@ -123,7 +123,7 @@ def parse(self, filepath): # File id 0 is always the current file (we store only the base file name without .txt extension). self._external_references[0] = self._file_index.get_id(os.path.basename(filepath[:-4])) - with open(filepath) as f: + with open(filepath, errors='ignore') as f: line = f.readline() # Parse external references. if line == "External References\n":