summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index c83eba3b93..8f505b6de9 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -333,7 +333,8 @@ class Wget(FetchMethod):
333 except (TypeError, ImportError, IOError, netrc.NetrcParseError): 333 except (TypeError, ImportError, IOError, netrc.NetrcParseError):
334 pass 334 pass
335 335
336 opener.open(r) 336 with opener.open(r) as response:
337 pass
337 except urllib.error.URLError as e: 338 except urllib.error.URLError as e:
338 if try_again: 339 if try_again:
339 logger.debug(2, "checkstatus: trying again") 340 logger.debug(2, "checkstatus: trying again")