Closed gae123 closed 1 year ago
_case_insensitive_zone_lookup is no longer thread safe, and there is a chance of triggering the exception if multiple threads attempt the first timezone lookup at the same time. Reverting the cited commit will fix the issue. Or we can keep the memory (premature) optimization by setting _all_timezones_unchecked
to the LazyList all_timezones
rather than delete the symbol.
python version: 2.7.18 pytz version: 2022.7
No changes on my end that could have provoked this.
The exact trace is:
I suspect it has to do with 86568705df89fde7e9271329b0ba06c4a7ad7f1b