Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaswolgast committed Nov 18, 2024
1 parent 4db5808 commit 009607e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opfgym/reward.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def prepare_reward_scaling(self,
reward_scaler = select_reward_scaler(reward_scaling)
try:
scaling_params.update(reward_scaler(**scaling_params))
except:
except TypeError:
scaling_params = estimate_reward_distribution(env, **scaling_params)
scaling_params.update(reward_scaler(**scaling_params))

Expand Down

0 comments on commit 009607e

Please sign in to comment.