Skip to content

Commit 59586fd

Browse files
author
Filip Nikolovski
committed
resolve lint issues
1 parent 1cecee6 commit 59586fd

File tree

1 file changed

+1
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon

1 file changed

+1
-3
lines changed

instrumentation/opentelemetry-instrumentation-falcon/src/opentelemetry/instrumentation/falcon/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,7 @@ def process_response(self, req, resp, resource, req_succeeded=None): # pylint:d
524524
if exc_type and not req_succeeded:
525525
if "HTTPNotFound" in exc_type.__name__:
526526
status = "404"
527-
elif isinstance(exc, falcon.HTTPError) or isinstance(
528-
exc, falcon.HTTPStatus
529-
):
527+
elif isinstance(exc, falcon.HTTPError, falcon.HTTPStatus):
530528
try:
531529
status = exc.title.split(" ")[0]
532530
except ValueError:

0 commit comments

Comments
 (0)