Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMachowski committed Jan 3, 2022
1 parent c7bd742 commit 162ef22
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def parse_section(buf: ParsingBuffer, name: str, map_id: int):
magic = buf.get_uint32('magic')
if magic != map_id:
raise ValueError(
f"error parsing section {name} at offset {buf._offs - 4:#x}: magic check failed."
+ f" Magic: {magic:#x}, Map ID: {map_id:#x}")
f"error parsing section {name} at offset {buf._offs - 4:#x}: magic check failed. " +
f"Magic: {magic:#x}, Map ID: {map_id:#x}")

@staticmethod
def parse_position(buf: ParsingBuffer, name: str) -> Optional[Point]:
Expand Down

0 comments on commit 162ef22

Please sign in to comment.