From cfd77e42522aa2ebeada9f45ac99bd1d3414f782 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 26 Mar 2021 13:01:12 -0700 Subject: [PATCH] reset locale to None on exception --- jc/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jc/utils.py b/jc/utils.py index 88a6edcf..0c3a1262 100644 --- a/jc/utils.py +++ b/jc/utils.py @@ -187,6 +187,7 @@ def parse_datetime_to_timestamp(data): locale.setlocale(locale.LC_TIME, None) break except Exception: + locale.setlocale(locale.LC_TIME, None) continue if dt and utc_tz: