PYTZ module time zone not found for TU country code

Bug #1923345 reported by salim ep
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pytz
New
Undecided
Unassigned

Bug Description

## Tunisia, Time zone not listed in PYTZ module

from pytz import timezone, country_timezones
my_timezone= str(country_timezones['TU'][0]).strip('\]').strip('\[').strip('\'')

Traceback (most recent call last):
  File "C:/Users/Salim.Ep/PycharmProjects/shift/venv/param.py", line 32, in <module>
    my_timezone= str(country_timezones['TU'][0]).strip('\]').strip('\[').strip('\'')
  File "C:\Users\Salim.Ep\PycharmProjects\shift\venv\lib\site-packages\pytz\lazy.py", line 28, in __getitem__
    return self.data[key.upper()]
KeyError: 'TU'

salim ep (eepeesalimep)
description: updated
tags: added: module python pytz
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.