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)
|
locale.setlocale(locale.LC_TIME, None)
|
||||||
break
|
break
|
||||||
except Exception:
|
except Exception:
|
||||||
|
locale.setlocale(locale.LC_TIME, None)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if dt and utc_tz:
|
if dt and utc_tz:
|
||||||
|
Reference in New Issue
Block a user