diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-04-22 11:24:18 +0100 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-04-22 11:24:18 +0100 |
commit | ac8c3fe6764028711cbe1dca88a6af632924473c (patch) | |
tree | fa5ecdbbb2b3de21a695dc131a7aec03a9149ba8 /sx-question-print.el | |
parent | 13123998a42be86d71b018604ad32dfd6537b8c7 (diff) |
Be more careful about printing accept button. Fix #288
Diffstat (limited to 'sx-question-print.el')
-rw-r--r-- | sx-question-print.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sx-question-print.el b/sx-question-print.el index 90a03fb..5b5ef4f 100644 --- a/sx-question-print.el +++ b/sx-question-print.el @@ -275,8 +275,9 @@ DETAILS, when given is an alist further describing the close." (defun sx-question-mode--maybe-print-accept-button () "Print accept button if you own this question." (when (sx-assoc-let sx-question-mode--data - (= .owner.user_id - (cdr (assq 'user_id (sx-network-user .site_par))))) + (ignore-errors + (= .owner.user_id + (cdr (assq 'user_id (sx-network-user .site_par)))))) (insert " ") (insert-text-button "Accept" :type 'sx-button-accept))) |