]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: fetch2/wget: Fix typo in exception name
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Dec 2018 13:08:38 +0000 (13:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Dec 2018 17:17:37 +0000 (17:17 +0000)
This could clearly never have worked since the python3 migration
but as its in an error path, it doesn't get tested/used much.

(Bitbake rev: 704f27dc28d50a6dc02c8b64274ee4ecb3058c4a)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/wget.py

index 8f505b6de95e9a3209f7bbb441d5ba0bd2192a09..1237e56098c4c05f5e4326a20deb05d236597f73 100644 (file)
@@ -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)