mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Ignore missing rows when removing files from cache db
This commit is contained in:
parent
895e167a77
commit
edebc64824
1 changed files with 7 additions and 1 deletions
|
@ -720,8 +720,14 @@ class FileCachedDataSource implements FileDataSource {
|
|||
|
||||
@override
|
||||
remove(Account account, File f) async {
|
||||
await _sqliteDbSrc.remove(account, f);
|
||||
await _remoteSrc.remove(account, f);
|
||||
try {
|
||||
await _sqliteDbSrc.remove(account, f);
|
||||
} catch (e, stackTrace) {
|
||||
// ignore cache failure
|
||||
_log.warning(
|
||||
"Failed while remove: ${logFilename(f.strippedPath)}", e, stackTrace);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
Loading…
Reference in a new issue