From 8893969d7dbe41b75397d9a3e983082925088665 Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 21 Apr 2021 17:44:40 -0400 Subject: [PATCH] Fix issue with service registry error compatibility --- bento_lib/package.cfg | 2 +- bento_lib/responses/flask_errors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bento_lib/package.cfg b/bento_lib/package.cfg index da81942..dfdaf45 100644 --- a/bento_lib/package.cfg +++ b/bento_lib/package.cfg @@ -1,5 +1,5 @@ [package] name = bento_lib -version = 2.2.0 +version = 2.2.1 authors = David Lougheed author_emails = david.lougheed@mail.mcgill.ca diff --git a/bento_lib/responses/flask_errors.py b/bento_lib/responses/flask_errors.py index 7fe3041..e2d1230 100644 --- a/bento_lib/responses/flask_errors.py +++ b/bento_lib/responses/flask_errors.py @@ -53,8 +53,8 @@ def flask_error_wrap(fn: Callable, *args, **kwargs) -> Callable: return lambda _e: fn(*args, **kwargs) -def flask_error(code: int, *errs, drs_compat: bool = False): - return jsonify(errors.http_error(code, *errs, drs_compat=drs_compat)), code +def flask_error(code: int, *errs, drs_compat: bool = False, sr_compat: bool = False): + return jsonify(errors.http_error(code, *errs, drs_compat=drs_compat, sr_compat=sr_compat)), code def _flask_error(code: int) -> Callable: