X-Git-Url: https://wylark.com/src/infoex-autowx.git/blobdiff_plain/06814f5e532c29e05562ebab327a454c8b8b8d12..c3d3cc62e986acac7b4b044eb7958b20e48ab2a1:/infoex-autowx.py?ds=sidebyside 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)