Skip to content

Commit b4acc87

Browse files
Merge branch 'master' of github.com:cameronangliss/poke-env into pickle-battle
2 parents 08b45dd + 9d35781 commit b4acc87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/poke_env/environment/doubles_env.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ def order_to_action(
269269
f"in battle {battle.battle_tag} - orders are incompatible!"
270270
)
271271
if strict:
272-
raise ValueError(str(error_msg) + " Defaulting to random move.")
272+
raise ValueError(error_msg)
273273
else:
274274
if battle.logger is not None:
275-
battle.logger.warning(error_msg)
275+
battle.logger.warning(error_msg + " Defaulting to random move.")
276276
return DoublesEnv.order_to_action(
277277
Player.choose_random_doubles_move(battle), battle, fake, strict
278278
)

0 commit comments

Comments
 (0)