Merge remote-tracking branch 'paride/rest-verbose'

This commit is contained in:
Paride Legovini 2025-11-27 18:43:34 +01:00
commit b458e86baf

View File

@ -41,6 +41,7 @@ class Rest:
exc = e exc = e
except (HTTPError, URLError) as e: except (HTTPError, URLError) as e:
if e.code not in (503, 502): if e.code not in (503, 502):
self.logger.error("Caught error %d downloading '%s'", e.code, url)
raise raise
self.logger.info( self.logger.info(
"Caught error %d downloading '%s', will retry %d more times." "Caught error %d downloading '%s', will retry %d more times."