From 704f27dc28d50a6dc02c8b64274ee4ecb3058c4a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 7 Dec 2018 13:08:38 +0000 Subject: 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 --- 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 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) -- cgit 1.2.3-korg