mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
catch attempt to update missing note
https://forums.ankiweb.net/t/bug-report-editor-updating-non-existing-card/2117/4?u=dae
This commit is contained in:
parent
d24bd7609c
commit
dab0c9ef7c
1 changed files with 2 additions and 0 deletions
|
@ -274,6 +274,8 @@ impl Collection {
|
|||
// nothing to do
|
||||
return Ok(());
|
||||
}
|
||||
} else {
|
||||
return Err(AnkiError::NotFound);
|
||||
}
|
||||
|
||||
self.transact(None, |col| {
|
||||
|
|
Loading…
Reference in a new issue