From dab0c9ef7cee4df80eecfddf032955e023580b0c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 17 Aug 2020 19:44:27 +1000 Subject: [PATCH] catch attempt to update missing note https://forums.ankiweb.net/t/bug-report-editor-updating-non-existing-card/2117/4?u=dae --- rslib/src/notes.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rslib/src/notes.rs b/rslib/src/notes.rs index 23e9f7019..9a1256c5a 100644 --- a/rslib/src/notes.rs +++ b/rslib/src/notes.rs @@ -274,6 +274,8 @@ impl Collection { // nothing to do return Ok(()); } + } else { + return Err(AnkiError::NotFound); } self.transact(None, |col| {