diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-02-21 10:26:53 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-02-21 10:26:53 +0100 |
commit | 5977495b8a7d2782b36723289e805f018375275b (patch) | |
tree | fd8c7d7610e1ae0ff952e48b73eb8988aab64dd2 /lisp/mastodon.el | |
parent | 52b7775cb7ce96fb023078ed5048f8bd5c080bc9 (diff) |
move condition case from http get-response to credential-account
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index ffeee82..abc7787 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -315,7 +315,12 @@ FORCE means to fetch from the server and update nil :silent))) (if force (setq mastodon-profile-credential-account - (eval req)) + ;; TODO: we should also signal a quit condition after like 5 + ;; secs here + (condition-case x + (eval req) + (t ; req fails, return old value + mastodon-profile-credential-account))) (or mastodon-profile-credential-account (setq mastodon-profile-credential-account (eval req)))))) |