Ignore errors in +tab-bar-notmuch-count
This commit is contained in:
parent
2e488c508f
commit
1d64079a52
|
@ -53,7 +53,7 @@
|
|||
(defun +tab-bar-notmuch-count ()
|
||||
"Display a notmuch count in the tab-bar."
|
||||
(when (featurep 'notmuch)
|
||||
(let* ((counts (notmuch-hello-query-counts notmuch-saved-searches))
|
||||
(let* ((counts (ignore-errors (notmuch-hello-query-counts notmuch-saved-searches)))
|
||||
(next (cl-find "inbox" counts :key (lambda (l) (plist-get l :name)) :test 'equal))
|
||||
(next-count (plist-get next :count)))
|
||||
(when (and next-count (> next-count 0))
|
||||
|
|
Loading…
Reference in New Issue