We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6ced86 commit 11c70aeCopy full SHA for 11c70ae
src/poke_env/environment/weather.py
@@ -37,6 +37,10 @@ def from_showdown_message(message: str):
37
try:
38
return Weather[message.upper()]
39
except KeyError:
40
+ if message.upper() == "SNOW":
41
+ # Backwards compatibility with out-of-date PS servers that still use "snow" as the weather
42
+ return Weather.SNOWSCAPE
43
+
44
logging.getLogger("poke-env").warning(
45
"Unexpected weather '%s' received. Weather.UNKNOWN will be used "
46
"instead. If this is unexpected, please open an issue at "
0 commit comments