mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-25 01:08:14 -04:00
[db] Catch NotFoundException in RepoAdder
This commit is contained in:
committed by
Michael Pöhn
parent
b5c8f2c92c
commit
7b52db331c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user