summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py18
1 files changed, 1 insertions, 17 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index 927487a0b6..dc88317610 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -369,7 +369,7 @@ class Wget(FetchMethod):
369 369
370 with opener.open(r, timeout=30) as response: 370 with opener.open(r, timeout=30) as response:
371 pass 371 pass
372 except urllib.error.URLError as e: 372 except (urllib.error.URLError, ConnectionResetError, TimeoutError) as e:
373 if try_again: 373 if try_again:
374 logger.debug2("checkstatus: trying again") 374 logger.debug2("checkstatus: trying again")
375 return self.checkstatus(fetch, ud, d, False) 375 return self.checkstatus(fetch, ud, d, False)
@@ -377,22 +377,6 @@ class Wget(FetchMethod):
377 # debug for now to avoid spamming the logs in e.g. remote sstate searches 377 # debug for now to avoid spamming the logs in e.g. remote sstate searches
378 logger.debug2("checkstatus() urlopen failed: %s" % e) 378 logger.debug2("checkstatus() urlopen failed: %s" % e)
379 return False 379 return False
380 except ConnectionResetError as e:
381 if try_again:
382 logger.debug2("checkstatus: trying again")
383 return self.checkstatus(fetch, ud, d, False)
384 else:
385 # debug for now to avoid spamming the logs in e.g. remote sstate searches
386 logger.debug2("checkstatus() urlopen failed: %s" % e)
387 return False
388 except TimeoutError as e:
389 if try_again:
390 logger.debug2("checkstatus: trying again")
391 return self.checkstatus(fetch, ud, d, False)
392 else:
393 # debug for now to avoid spamming the logs in e.g. remote sstate searches
394 logger.debug2("checkstatus() urlopen TimeoutError: %s" % e)
395 return False
396 380
397 return True 381 return True
398 382