aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 13:08:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-07 15:59:50 +0000
commit704f27dc28d50a6dc02c8b64274ee4ecb3058c4a (patch)
treeac502eee33dbb500bec985b7847bf88ef4b79d31
parent8d1fc115b8a176009f1f3a8ce840b422e7e0b45e (diff)
downloadbitbake-704f27dc28d50a6dc02c8b64274ee4ecb3058c4a.tar.gz
fetch2/wget: Fix typo in exception name
This could clearly never have worked since the python3 migration but as its in an error path, it doesn't get tested/used much. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/wget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 8f505b6de..1237e5609 100644
--- a/lib/bb/fetch2/wget.py
+++ b/lib/bb/fetch2/wget.py
@@ -168,7 +168,7 @@ class Wget(FetchMethod):
"""
host = req.host
if not host:
- raise urlllib2.URLError('no host given')
+ raise urllib.error.URLError('no host given')
h = http_class(host, timeout=req.timeout) # will parse host:port
h.set_debuglevel(self._debuglevel)