Skip to content

Commit f1609f7

Browse files
authored
Merge pull request #67 from ZandercraftGames/fix/load-exceptions
Fix KeyError in exception handling on error when loading a track.
2 parents 519a14f + 5fcfc73 commit f1609f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pomice/pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ async def get_tracks(
733733
)
734734

735735
elif load_type in ("LOAD_FAILED", "error"):
736-
exception = data["exception"]
736+
exception = data["data"] if self._version.major >= 4 else data["exception"]
737737
raise TrackLoadError(
738738
f"{exception['message']} [{exception['severity']}]",
739739
)

0 commit comments

Comments
 (0)