Browse Source

Must use dumped format when return exception response

Bastien Sevajol 5 years ago
parent
commit
bd8366f60a
No account linked to committer's email
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hapic/decorator.py

+ 1 - 1
hapic/decorator.py View File

437
                 )
437
                 )
438
 
438
 
439
             error_response = self.context.get_response(
439
             error_response = self.context.get_response(
440
-                json.dumps(response_content),
440
+                json.dumps(dumped),
441
                 self.http_code,
441
                 self.http_code,
442
             )
442
             )
443
             return error_response
443
             return error_response