Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 9, 2024
1 parent 6e0f207 commit 33c429b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torchrl/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2133,7 +2133,9 @@ def _register_gym( # noqa: F811
if autoreset is not None:
raise TypeError("autoreset is only compatible with gymnasium<1.0.")
if apply_api_compatibility is not None:
raise TypeError("apply_api_compatibility is only compatible with gymnasium<1.0.")
raise TypeError(
"apply_api_compatibility is only compatible with gymnasium<1.0."
)
return gymnasium.register(
id=id,
entry_point=entry_point,
Expand Down

0 comments on commit 33c429b

Please sign in to comment.