Skip to content

Commit

Permalink
[#42409] Catch ChunkedEncodingError
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlaczek committed Oct 9, 2023
1 parent 76198e0 commit ddcef26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dockersave/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def save_blob_chunked(image, digest, filename, token, registry_url, content_rang
if chunk:
i += len(chunk)
f.write(chunk)
except requests.models.ProtocolError:
except (requests.models.ProtocolError, requests.exceptions.ChunkedEncodingError):
time.sleep(5)
retries += 1
save_blob_chunked(image, digest, filename, token, registry_url, i, retries)
Expand Down

0 comments on commit ddcef26

Please sign in to comment.