Skip to content

Commit

Permalink
Fix issue with service registry error compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Apr 21, 2021
1 parent 08046e8 commit 8893969
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 8893969

Please sign in to comment.