1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

fix exception

This commit is contained in:
Augusto Morais 2018-09-14 23:14:29 -03:00
parent 3074abf463
commit 651ee9747f

View File

@ -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')