Skip to content

Commit c1afb36

Browse files
authored
Allow HTTP 203 as successful response (platformio#5043)
Fixes downloading library dependencies from Azure Devops repositories.
1 parent f3c27ea commit c1afb36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platformio/package/download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def __init__(self, url, dest_dir=None):
3434
url,
3535
stream=True,
3636
)
37-
if self._http_response.status_code != 200:
37+
if self._http_response.status_code not in (200, 203):
3838
raise PackageException(
3939
"Got the unrecognized status code '{0}' when downloaded {1}".format(
4040
self._http_response.status_code, url

0 commit comments

Comments
 (0)