From d39f5e59c6d71a26ce071e291c5c595e9e545468 Mon Sep 17 00:00:00 2001 From: Maximilian Gerhardt Date: Mon, 9 Dec 2024 18:48:03 +0100 Subject: [PATCH] Allow HTTP 203 as successful response Fixes downloading library dependencies from Azure Devops repositories. --- platformio/package/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/package/download.py b/platformio/package/download.py index 17cc1f30eb..d8ad564869 100644 --- a/platformio/package/download.py +++ b/platformio/package/download.py @@ -34,7 +34,7 @@ def __init__(self, url, dest_dir=None): url, stream=True, ) - if self._http_response.status_code != 200: + if self._http_response.status_code not in (200, 203): raise PackageException( "Got the unrecognized status code '{0}' when downloaded {1}".format( self._http_response.status_code, url