Skip to content

Commit

Permalink
Merge pull request #57 from bento-platform/develop
Browse files Browse the repository at this point in the history
Fix issue with service registry error compatibility
  • Loading branch information
davidlougheed authored Apr 21, 2021
2 parents 4ac02e9 + 8893969 commit 747b81f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bento_lib/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = bento_lib
version = 2.2.0
version = 2.2.1
authors = David Lougheed
author_emails = [email protected]
4 changes: 2 additions & 2 deletions bento_lib/responses/flask_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 747b81f

Please sign in to comment.