From 6ba5eefb33fda79ce901debe9e495abe105a6f66 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 9 Mar 2021 21:42:30 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index d8bf21b4..8738d6c7 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -156,7 +156,7 @@ def analyze(ice_dct, no_ice_dct): try: ds = get_goes_datasource(ts) goes_file, t_0, _ = ds.get_file(ts) - if goes_file != last_file: + if goes_file is not None and goes_file != last_file: ice_files.append(goes_file) ice_times.append(t_0) last_file = goes_file @@ -170,7 +170,7 @@ def analyze(ice_dct, no_ice_dct): try: ds = get_goes_datasource(ts) goes_file, t_0, _ = ds.get_file(ts) - if goes_file != last_file: + if goes_file is not None and goes_file != last_file: no_ice_files.append(goes_file) no_ice_times.append(t_0) last_file = goes_file -- GitLab