make unwrap resilient for global cache

This commit is contained in:
Ruben Fiszel
2023-07-14 16:20:35 +02:00
parent 51e1447ec7
commit 04fc0290ed
+4 -1
View File
@@ -443,7 +443,10 @@ pub async fn untar_all_piptars() -> error::Result<()> {
.last()
.unwrap()
.strip_suffix(".tar")
.unwrap()
.ok_or_else(|| error::Error::InternalErr(format!(
"Unexpected path file not ending in .tar for: {}",
path
)))?
);
if metadata(&folder).await.is_ok() {
continue;