mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-12-22 19:21:08 +00:00
Fix Response.new_error
This commit is contained in:
parent
7732a860e9
commit
e6d7c60a5a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue