1
0
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:
Johan Andersson 2013-03-24 20:37:46 +01:00
parent f959af260c
commit 3cc8752f39

View File

@ -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 """