mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
I made this variable for more compatible and safer type narrowing, and then I didn't use if for the type narrowing.
This commit is contained in:
@@ -102,7 +102,7 @@ class APContainer:
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user