Skip to content

Commit

Permalink
Bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
surf-anieuwland committed Nov 23, 2023
1 parent 914e40f commit c67563d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.4.1
current_version = 1.4.2
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Expand Down
2 changes: 1 addition & 1 deletion oauth2_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

"""This is the SURF Oauth2 module that interfaces with the oauth2 setup."""

__version__ = "1.4.1"
__version__ = "1.4.2"
2 changes: 1 addition & 1 deletion oauth2_lib/fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ async def _opa_decision(
# we need to suppress the `None` case (TypeError) or the `other than json` case (JSONDecodeError)
# Suppress AttributeError in case of websocket request, it doesn't have .json
except (JSONDecodeError, TypeError, ClientDisconnect, AttributeError, RuntimeError) as e:
if not (isinstance(e, RuntimeError) and "Stream consumed" in str(e)):
if isinstance(e, RuntimeError) and "Stream consumed" not in str(e):
# RuntimeError is a very broad error class. We only want to catch and ignore a stream
# consumed runtime error. In other cases, reraise the error.
raise e
Expand Down

0 comments on commit c67563d

Please sign in to comment.