Merge pull request #67 from ZandercraftGames/fix/load-exceptions

Fix KeyError in exception handling on error when loading a track.
This commit is contained in:
Clxud 2024-03-27 22:10:37 -04:00 committed by GitHub
commit f1609f7049
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ class Node:
)
elif load_type in ("LOAD_FAILED", "error"):
exception = data["exception"]
exception = data["data"] if self._version.major >= 4 else data["exception"]
raise TrackLoadError(
f"{exception['message']} [{exception['severity']}]",
)