Skip to content

Commit

Permalink
resolve lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipNikolovski committed Dec 10, 2024
1 parent 1cecee6 commit 59586fd
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,7 @@ def process_response(self, req, resp, resource, req_succeeded=None): # pylint:d
if exc_type and not req_succeeded:
if "HTTPNotFound" in exc_type.__name__:
status = "404"
elif isinstance(exc, falcon.HTTPError) or isinstance(
exc, falcon.HTTPStatus
):
elif isinstance(exc, falcon.HTTPError, falcon.HTTPStatus):
try:
status = exc.title.split(" ")[0]
except ValueError:
Expand Down

0 comments on commit 59586fd

Please sign in to comment.