From 1c6a5e43634fba34008a0e67acb0b712f53118ff Mon Sep 17 00:00:00 2001 From: Nathaniel Nicandro Date: Wed, 16 Jan 2019 16:59:47 -0600 Subject: [PATCH] jupyter--decode-message-part: Return nil when MSG is nil --- jupyter-messages.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter-messages.el b/jupyter-messages.el index 5310559..c5185e2 100644 --- a/jupyter-messages.el +++ b/jupyter-messages.el @@ -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)))