mirror of https://github.com/cirruslabs/tart.git
tart pull: retry if we get URLError (#947)
This commit is contained in:
parent
cd0f238a67
commit
b4de3bee83
|
|
@ -212,7 +212,7 @@ class VMStorageOCI: PrunableStorage {
|
|||
|
||||
try await tmpVMDir.pullFromRegistry(registry: registry, manifest: manifest, concurrency: concurrency, localLayerCache: localLayerCache, deduplicate: deduplicate)
|
||||
} recoverFromFailure: { error in
|
||||
if error is Retryable {
|
||||
if error is URLError {
|
||||
print("Error: \(error.localizedDescription)")
|
||||
print("Attempting to re-try...")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue