diff --git a/pirate/torrent.py b/pirate/torrent.py index e5289a7..baf93a0 100644 --- a/pirate/torrent.py +++ b/pirate/torrent.py @@ -181,7 +181,7 @@ def save_torrents(printer, chosen_links, results, folder): try: torrent = get_torrent(info_hash) - except urllib.error.HTTPError: + except urllib.error.HTTPError as e: printer.print('There is no cached file for this torrent :(' ' \nCode: {} - {}'.format(e.code, e.reason), color='ERROR')