Ignore errors in +tab-bar-notmuch-count

This commit is contained in:
Case Duckworth 2022-04-02 13:54:33 -05:00
parent 2e488c508f
commit 1d64079a52
1 changed files with 1 additions and 1 deletions

View File

@ -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))