handle LOAD_FAILED loadtype without erroring xd

This commit is contained in:
VP 2021-10-20 21:17:30 +03:00
parent 7b83a9fc69
commit 2afff11a5e
1 changed files with 2 additions and 4 deletions

View File

@ -423,10 +423,8 @@ class Node:
raise TrackLoadError("There was an error while trying to load this track.") raise TrackLoadError("There was an error while trying to load this track.")
elif load_type == "LOAD_FAILED": elif load_type == "LOAD_FAILED":
raise TrackLoadError( exception = data["exception"]
f"There was an error of severity '{data['severity']}' " raise TrackLoadError(f"{exception['message']} [{exception['severity']}]")
f"while loading tracks.\n\n{data['cause']}"
)
elif load_type == "NO_MATCHES": elif load_type == "NO_MATCHES":
return None return None