diff options
-rw-r--r-- | guix-qa-frontpage/guix-data-service.scm | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/guix-qa-frontpage/guix-data-service.scm b/guix-qa-frontpage/guix-data-service.scm index 8e68cc7..c35881c 100644 --- a/guix-qa-frontpage/guix-data-service.scm +++ b/guix-qa-frontpage/guix-data-service.scm @@ -90,21 +90,16 @@ 404) #f (let ((json-body - (with-exception-handler - (lambda _ #f) - (lambda () - (match (response-content-encoding response) - (('gzip) - (call-with-zlib-input-port - body - json->scm - #:format 'gzip)) - (_ - (json->scm body)))) - #:unwind? #t))) + (match (response-content-encoding response) + (('gzip) + (call-with-zlib-input-port + body + json->scm + #:format 'gzip)) + (_ + (json->scm body))))) (if (or (> (response-code response) 400) - (not json-body) (assoc-ref json-body "error")) (raise-exception (make-guix-data-service-error json-body |