From b7202e9d0485bcf3d0236ae6b78141cb1a5b173d Mon Sep 17 00:00:00 2001 From: Gunnar Schaefer <gsfr@stanford.edu> Date: Thu, 20 Aug 2015 13:58:54 -0700 Subject: [PATCH] BF: add kwargs back to base.abort() --- base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base.py b/base.py index e35e8ae4..cbec08ee 100644 --- a/base.py +++ b/base.py @@ -126,7 +126,7 @@ class RequestHandler(webapp2.RequestHandler): if header in r.headers: self.response.headers[header] = r.headers[header] - def abort(self, code, detail): + def abort(self, code, detail, **kwargs): if isinstance(detail, jsonschema.ValidationError): detail = { 'relative_path': list(detail.relative_path), @@ -140,7 +140,7 @@ class RequestHandler(webapp2.RequestHandler): 'code': code, 'detail': detail, } - webapp2.abort(code, json_body=json_body) + webapp2.abort(code, json_body=json_body, **kwargs) def schema(self, updates={}): json_schema = copy.deepcopy(self.json_schema) -- GitLab