X-Git-Url: https://wylark.com/src/infoex-autowx.git/blobdiff_plain/ab9d94ed5106de49bd048896e8f4c7e00c0398d5..c3d3cc62e986acac7b4b044eb7958b20e48ab2a1:/infoex-autowx.py diff --git a/infoex-autowx.py b/infoex-autowx.py index f2be003..9bd77c1 100755 --- a/infoex-autowx.py +++ b/infoex-autowx.py @@ -473,6 +473,9 @@ def get_mesowest_data(begin, end, station): try: observations = json['STATION'][0]['OBSERVATIONS'] + except KeyError: + LOG.error("Unexpected JSON in MesoWest response") + sys.exit(1) except ValueError: LOG.error("Bad JSON in MesoWest response") sys.exit(1)