Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sentry_sdk/integrations/ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

try:
import ray # type: ignore[import-not-found]
from ray import remote
except ImportError:
raise DidNotEnable("Ray not installed.")

Expand All @@ -37,7 +38,7 @@ def _check_sentry_initialized() -> None:


def _patch_ray_remote() -> None:
old_remote = ray.remote
old_remote = remote

@functools.wraps(old_remote)
def new_remote(
Expand Down
1 change: 0 additions & 1 deletion tests/test_shadowed_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def pytest_generate_tests(metafunc):
"litellm",
"opentelemetry",
"pure_eval",
"ray",
"trytond",
"typer",
},
Expand Down
Loading