Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydvoss committed Jan 22, 2024
1 parent 6b55bd5 commit 804e22d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,13 @@ def get_aggregated_resources(
detected_resource: Resource = _EMPTY_RESOURCE
try:
detected_resource = future.result(timeout=timeout)
# pylint: disable=broad-except
except concurrent.futures.TimeoutError:
if detector.raise_on_error:
raise ex
logger.warning(
"Detector %s took longer than %s seconds, skipping", detector, timeout
)
# pylint: disable=broad-except
except Exception as ex:
if detector.raise_on_error:
raise ex
Expand Down

0 comments on commit 804e22d

Please sign in to comment.