aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-02-21 10:26:53 +0100
committermarty hiatt <martianhiatus@riseup.net>2024-02-21 10:26:53 +0100
commit5977495b8a7d2782b36723289e805f018375275b (patch)
treefd8c7d7610e1ae0ff952e48b73eb8988aab64dd2 /lisp/mastodon-http.el
parent52b7775cb7ce96fb023078ed5048f8bd5c080bc9 (diff)
move condition case from http get-response to credential-account
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index a345324..aef8975 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -180,13 +180,8 @@ SILENT means don't message.
NO-HEADERS means don't collect http response headers.
VECTOR means return json arrays as vectors."
(let ((buf (mastodon-http--get url params silent)))
- ;; (if (not buf)
- ;; (error "Request returned nada")
- (condition-case x
- (with-current-buffer buf
- (mastodon-http--process-response no-headers vector))
- (wrong-type-argument
- (error "Request returned nada")))))
+ (with-current-buffer buf
+ (mastodon-http--process-response no-headers vector))))
(defun mastodon-http--get-json (url &optional params silent vector)
"Return only JSON data from URL request.