From f005db3f8d8f27449dcc60f4df5ad6d8ec6d1c18 Mon Sep 17 00:00:00 2001
From: nickb <nickb@ssec.wisc.edu>
Date: Fri, 12 Feb 2021 21:52:02 +0000
Subject: [PATCH] catch other potential get_start_end errors

---
 gridded_glm/libexec/_minute_gridder.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gridded_glm/libexec/_minute_gridder.py b/gridded_glm/libexec/_minute_gridder.py
index f008eae..34a5943 100644
--- a/gridded_glm/libexec/_minute_gridder.py
+++ b/gridded_glm/libexec/_minute_gridder.py
@@ -162,6 +162,9 @@ def grid_setup(args, work_dir=os.getcwd()):
     except ValueError:
         log.error("Non-standard filenames provided, use --start and --end to specify data times.")
         raise
+    except:
+        log.error("Could not parse start & end times from one or more of the files provided.")
+        exit(1)
 
     base_date = datetime(start_time.year, start_time.month, start_time.day)
     proj_name = 'geos'
-- 
GitLab