Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.74k stars 445 forks source link

Improved error handling in torrent info endpoint #7975

Closed drew2a closed 2 months ago

drew2a commented 2 months ago

Updated the TorrentInfoEndpoint class to catch OSError, which includes FileNotFoundError and PermissionError, while decoding a torrent file. This ensures that the server responds with an appropriate 500 error message when such issues occur.

Fixes #7974