Avoid applying alist-get on a non-list object
This commit is contained in:
parent
06c8ff3e79
commit
ad151a132f
1 changed files with 2 additions and 1 deletions
|
@ -177,7 +177,8 @@ See https://apps.ankiweb.net/docs/manual.html#latex-conflicts.")
|
|||
|
||||
(defun anki-editor--anki-connect-invoke-multi (&rest actions)
|
||||
(-zip-with (lambda (result handler)
|
||||
(when-let ((err (alist-get 'error result)))
|
||||
(when-let (((listp result))
|
||||
(err (alist-get 'error result)))
|
||||
(error err))
|
||||
(and handler (funcall handler result)))
|
||||
(anki-editor--anki-connect-invoke-result
|
||||
|
|
Loading…
Reference in a new issue