1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

reset locale to None on exception

This commit is contained in:
Kelly Brazil
2021-03-26 13:01:12 -07:00
parent 38f814072e
commit cfd77e4252

View File

@ -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: