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:
@ -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:
|
||||
|
Reference in New Issue
Block a user