handle LOAD_FAILED loadtype without erroring xd
This commit is contained in:
parent
7b83a9fc69
commit
2afff11a5e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue