From 3074abf463a24e750f02bcf33507aabb9361a22b Mon Sep 17 00:00:00 2001 From: Augusto Morais Date: Fri, 14 Sep 2018 22:11:29 -0300 Subject: [PATCH] give more detail when there is not possible download a torrent file --- pirate/torrent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pirate/torrent.py b/pirate/torrent.py index 340618d..e5289a7 100644 --- a/pirate/torrent.py +++ b/pirate/torrent.py @@ -182,7 +182,8 @@ def save_torrents(printer, chosen_links, results, folder): try: torrent = get_torrent(info_hash) except urllib.error.HTTPError: - printer.print('There is no cached file for this torrent :(', + printer.print('There is no cached file for this torrent :(' + ' \nCode: {} - {}'.format(e.code, e.reason), color='ERROR') else: open(file, 'wb').write(torrent)