[db] Catch NotFoundException in RepoAdder

This commit is contained in:
Torsten Grote
2023-08-24 17:07:53 +02:00
committed by Michael Pöhn
parent b5c8f2c92c
commit 7b52db331c
2 changed files with 52 additions and 0 deletions

View File

@@ -177,6 +177,10 @@ internal class RepoAdder(
log.error(e) { "Error fetching repo." }
addRepoState.value = AddRepoError(INVALID_INDEX, e)
return
} catch (e: NotFoundException) { // v1 repos can also have 404
log.error(e) { "Error fetching repo." }
addRepoState.value = AddRepoError(INVALID_INDEX, e)
return
}
// set final result
val finalRepo = receivedRepo