diff --git a/modules/icing/pireps.py b/modules/icing/pireps.py index 678929b48f2033457b5fffbe1e429394e34aa75d..07c77f71bc80518f16e0b327df08fd1261ad4419 100644 --- a/modules/icing/pireps.py +++ b/modules/icing/pireps.py @@ -40,8 +40,11 @@ def pirep_icing(filename, lon_range=[-180, 180], lat_range=[-63, 63]): continue report = toks[3] - lat = float(toks[4]) - lon = float(toks[5]) + try: + lat = float(toks[4]) + lon = float(toks[5]) + except Exception: + continue if lon < lon_range[0] or lon > lon_range[1]: continue