Skip to content

Commit d0dc7de

Browse files
author
Silvestre Bahi
committed
Revert "[BugFix] Changing the dm_control import to fail if not installed (#515)"
This reverts commit d194735.
1 parent 20511a1 commit d0dc7de

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

torchrl/envs/libs/dm_control.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,6 @@ class DMControlEnv(DMControlWrapper):
272272
"""
273273

274274
def __init__(self, env_name, task_name, **kwargs):
275-
if not _has_dmc:
276-
raise ImportError(
277-
"dm_control python package was not found."
278-
"Please install this dependency."
279-
)
280275
kwargs["env_name"] = env_name
281276
kwargs["task_name"] = task_name
282277
super().__init__(**kwargs)

0 commit comments

Comments
 (0)