csparpa / pyowm

A Python wrapper around the OpenWeatherMap web API
https://pyowm.readthedocs.io
MIT License
790 stars 172 forks source link

One call not working for Russian coordinates #418

Closed johnamdickson closed 1 year ago

johnamdickson commented 1 year ago

When making one call with coordinates in Russia I got the following exception: "Event Description Must be Specified". I am subscribed to the One Call By Call API and can view the weather report for the coordinates using API call in browser address bar.

I was able to resolve this so this issue is submitted to assist anyone else that has the same. In short, I noticed the JSON returned from inputting Russian coordinates included alerts. I added exclude='alerts' to the weather manager one_call and the error cleared.