mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
jupyter--decode-message-part: Return nil when MSG is nil
This commit is contained in:
parent
9b955398cd
commit
1c6a5e4363
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ set it to the result of calling `jupyter--decode' on the second
|
|||
element. If the third element is non-nil, return it. Otherwise
|
||||
return the value of KEY in MSG."
|
||||
`(let ((part (plist-get ,msg ,key)))
|
||||
(if (and (listp part) (eq (car part) 'message-part))
|
||||
(if (and (consp part) (eq (car part) 'message-part))
|
||||
(or (nth 2 part) (jupyter--decode part))
|
||||
part)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue