[bitbake-devel] [PATCH] fetch2/wget: Fix typo in exception name

Richard Purdie richard.purdie at linuxfoundation.org
Fri Dec 7 13:09:22 UTC 2018


This could clearly never have worked but as its in an error path, it doesn't
get tested/used much.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/wget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/wget.py b/lib/bb/fetch2/wget.py
index 8f505b6de9..1237e56098 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)
-- 
2.19.1



More information about the bitbake-devel mailing list