From e6d7c60a5accf1e75b7cc9bfd5efa888eb64c855 Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Sun, 13 Nov 2022 15:00:53 +0900 Subject: [PATCH] Fix Response.new_error --- relay/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/misc.py b/relay/misc.py index f56c0db..626faf8 100644 --- a/relay/misc.py +++ b/relay/misc.py @@ -488,7 +488,7 @@ class Response(AiohttpResponse): if ctype == 'json': body = json.dumps({'status': status, 'error': body}) - return cls(body=body, status=status, ctype=ctype) + return cls.new(body=body, status=status, ctype=ctype) @property