Allow HTTP 203 as successful response (#5043)

Fixes downloading library dependencies from Azure Devops repositories.
This commit is contained in:
Maximilian Gerhardt
2024-12-09 19:07:27 +01:00
committed by GitHub
parent f3c27eadf6
commit c1afb364e9

View File

@ -34,7 +34,7 @@ class FileDownloader:
url, url,
stream=True, stream=True,
) )
if self._http_response.status_code != 200: if self._http_response.status_code not in (200, 203):
raise PackageException( raise PackageException(
"Got the unrecognized status code '{0}' when downloaded {1}".format( "Got the unrecognized status code '{0}' when downloaded {1}".format(
self._http_response.status_code, url self._http_response.status_code, url