Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions map_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def parse_sections(file_name: str) -> list:
"""

sections = []
with open(file_name, 'r') as file:
with open(file_name, 'r', errors='replace') as file:
# skip until memory map is found
found = False

Expand All @@ -67,7 +67,7 @@ def parse_sections(file_name: str) -> list:
break

if not found:
raise Exception(f'Memory configuration is not found in the{input_file}')
raise Exception(f'Memory configuration is not found in {file_name}')

# long section names result in a linebreak afterwards
sectionre = re.compile(
Expand Down