Skip to content

Commit

Permalink
Remove experiment deprecated check
Browse files Browse the repository at this point in the history
  • Loading branch information
salimaboubacar committed Jul 15, 2020
1 parent bf39783 commit 29038d8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mindsay_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ def get_experiments(self) -> List[Dict[str, Any]]:
def set_current_experiment(self, experiment_id: int) -> Dict[str, Any]:
"""Set the current experiment"""
environment = self.get_current_environment()
if not environment["current_bot"]["can_use_experiments?"]:
raise ValueError("This bot cannot use experiments")
response = self.post(
"environment/set_current_experiment", json={"experiment_id": experiment_id}
)
Expand Down

0 comments on commit 29038d8

Please sign in to comment.