Skip to content

Commit

Permalink
Core: fix (typing) mistake in PR ArchipelagoMW#2887 (ArchipelagoMW#2891)
Browse files Browse the repository at this point in the history
I made this variable for more compatible and safer type narrowing, and then I didn't use if for the type narrowing.
  • Loading branch information
beauxq authored Mar 4, 2024
1 parent a70b94f commit ecec931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worlds/Files.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def read(self, file: Optional[Union[str, BinaryIO]] = None) -> None:
message = ""
if len(e.args):
arg0 = e.args[0]
if isinstance(e.args[0], str):
if isinstance(arg0, str):
message = f"{arg0} - "
raise InvalidDataError(f"{message}This might be the incorrect world version for this file") from e

Expand Down

0 comments on commit ecec931

Please sign in to comment.