mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
download_http: import HTTPError
This commit is contained in:
parent
f959af260c
commit
3cc8752f39
@ -9,9 +9,9 @@ from svtplay_dl.output import progress # FIXME use progressbar() instead
|
||||
from svtplay_dl.log import log
|
||||
|
||||
if sys.version_info > (3, 0):
|
||||
from urllib.request import urlopen, Request
|
||||
from urllib.request import urlopen, Request, HTTPError
|
||||
else:
|
||||
from urllib2 import urlopen, Request
|
||||
from urllib2 import urlopen, Request, HTTPError
|
||||
|
||||
def download_http(options, url):
|
||||
""" Get the stream from HTTP """
|
||||
|
Loading…
Reference in New Issue
Block a user