We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451f7d8 commit a1457aeCopy full SHA for a1457ae
sonicbit/types/torrent/torrent_details.py
@@ -24,7 +24,8 @@ def from_response(response: Response) -> "TorrentDetails":
24
f"Server returned invalid JSON data: {response.text}"
25
) from None
26
27
- if error_message := json_data.get("message"):
+ if "message" in json_data:
28
+ error_message = json_data["message"]
29
raise SonicBitError(f"Failed to get torrent details: {error_message}")
30
31
return TorrentDetails(
0 commit comments