diff --git a/pirate/torrent.py b/pirate/torrent.py index 340618d..baf93a0 100644 --- a/pirate/torrent.py +++ b/pirate/torrent.py @@ -181,8 +181,9 @@ 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 :(', + except urllib.error.HTTPError as e: + printer.print('There is no cached file for this torrent :(' + ' \nCode: {} - {}'.format(e.code, e.reason), color='ERROR') else: open(file, 'wb').write(torrent)