diff options
author | Christopher Baines <mail@cbaines.net> | 2025-02-27 09:54:56 +0000 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2025-02-27 09:54:56 +0000 |
commit | 4ebff8a1293af72073a01b214217e5a7e5ad081e (patch) | |
tree | 7828aa57776a651a7dd5598eaee2fe6c189fe8dc | |
parent | 514ab0ccb6a4fa461b0a03f9ddd2b72b727106e6 (diff) | |
download | qa-frontpage-4ebff8a1293af72073a01b214217e5a7e5ad081e.tar qa-frontpage-4ebff8a1293af72073a01b214217e5a7e5ad081e.tar.gz |
Replace with-throw-handler
-rw-r--r-- | guix-qa-frontpage/mumi.scm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/guix-qa-frontpage/mumi.scm b/guix-qa-frontpage/mumi.scm index 80f3646..7060098 100644 --- a/guix-qa-frontpage/mumi.scm +++ b/guix-qa-frontpage/mumi.scm @@ -97,11 +97,12 @@ When VERIFY-CERTIFICATE? is true, verify HTTPS server certificates." (define (call-with-cached-connection uri proc) (let ((port (open-socket-for-uri/cached uri))) - (with-throw-handler #t + (with-exception-handler + (lambda (exn) + (close-port port) + (raise-exception exn)) (lambda () - (proc port)) - (lambda _ - (close-port port))))) + (proc port))))) (define* (graphql-http-get* uri document |