From b90a10e95ecb7694564fab50a56c854433bc8e5a Mon Sep 17 00:00:00 2001 From: Matt Fisher Date: Wed, 25 Sep 2024 16:18:28 -0600 Subject: [PATCH] Use a more specific error type than RuntimeError --- icepyx/core/APIformatting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icepyx/core/APIformatting.py b/icepyx/core/APIformatting.py index a70b66e0a..7ef1e7e7b 100644 --- a/icepyx/core/APIformatting.py +++ b/icepyx/core/APIformatting.py @@ -51,7 +51,7 @@ def _fmt_temporal(start, end, key): + end.strftime("%Y-%m-%dT%H:%M:%S") ) else: - raise RuntimeError("An invalid time key was submitted for formatting.") + raise ValueError("An invalid time key was submitted for formatting.") return {key: fmt_timerange}