cytech / weather.wundergroundpws

A Kodi weather addon for Weather Underground personal weather station users
GNU General Public License v2.0
4 stars 0 forks source link

No JSON object could be decoded #5

Open Megachip opened 5 years ago

Megachip commented 5 years ago

after finding a solution for issue #3, I'm running into the next problem:

Error Type: <type 'exceptions.ValueError'>
Error Contents: No JSON object could be decoded
Traceback (most recent call last):
  File "/storage/.kodi/addons/weather.wundergroundpws/default.py", line 316, in <module>
                                                forecast(location, locationid, locationlat, locationlon)
  File "/storage/.kodi/addons/weather.wundergroundpws/default.py", line 114, in forecast
                                                query = wundergroundapi(locid, loclat, loclon)
  File "/storage/.kodi/addons/weather.wundergroundpws/resources/lib/wunderground.py", line 49, in wundergroundapi
                                                a = json.loads(currentpws_data)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
ValueError: No JSON object could be decoded
-->End of Python script error report<--