From bace45e696b1015e2ae26488301ca0fa9ea9a8b4 Mon Sep 17 00:00:00 2001 From: Bung Date: Wed, 3 May 2023 22:10:56 +0800 Subject: [PATCH] o --- src/scorper/http/streamserver.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scorper/http/streamserver.nim b/src/scorper/http/streamserver.nim index 57db8e1..41fd62a 100644 --- a/src/scorper/http/streamserver.nim +++ b/src/scorper/http/streamserver.nim @@ -131,7 +131,7 @@ macro acceptMime*(req: ImpRequest, ext: untyped, headers: HttpHeaders, body: unt try: {.cast(gcsafe).}: r = req.server.privAccpetParser.match(accept, mimes) - except CatchableError as err: + except Exception as err: await req.respError(Http500, err.msg, headers) return var ext {.inject.}: string