Fix Response.new_error

This commit is contained in:
Jeong Arm 2022-11-13 15:00:53 +09:00
parent 7732a860e9
commit e6d7c60a5a

View file

@ -488,7 +488,7 @@ class Response(AiohttpResponse):
if ctype == 'json': if ctype == 'json':
body = json.dumps({'status': status, 'error': body}) 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 @property