Skip to content

Commit 6ce17d5

Browse files
committed
Merge branch 'develop' of https://github.com/csparpa/pyowm into develop
2 parents 5480ec7 + 15587f1 commit 6ce17d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyowm/weatherapi25/weather.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ def from_dict(cls, the_dict):
319319
elif 'all' in the_dict['clouds']:
320320
clouds = the_dict['clouds']['all']
321321

322+
# -- precipitation workaround
323+
if 'precipitation' in the_dict and 'rain' not in the_dict:
324+
the_dict['rain'] = the_dict['precipitation']
325+
322326
# -- rain
323327
rain = dict()
324328
if 'rain' in the_dict:

0 commit comments

Comments
 (0)