mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-09 09:59:51 +01:00
fix exception
This commit is contained in:
parent
3074abf463
commit
651ee9747f
@ -181,7 +181,7 @@ def save_torrents(printer, chosen_links, results, folder):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
torrent = get_torrent(info_hash)
|
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 :('
|
printer.print('There is no cached file for this torrent :('
|
||||||
' \nCode: {} - {}'.format(e.code, e.reason),
|
' \nCode: {} - {}'.format(e.code, e.reason),
|
||||||
color='ERROR')
|
color='ERROR')
|
||||||
|
Loading…
Reference in New Issue
Block a user