def get_time_zone(time_zone_str: str) -> Optional[dt.tzinfo]:
    'Get time zone from string. Return None if unable to determine.\n\n    Async friendly.\n    '
    try:
        return pytz.timezone(time_zone_str)
    except pytzexceptions.UnknownTimeZoneError:
        return None
Get time zone from string. Return None if unable to determine.

Async friendly.
def get_time_zone(time_zone_str: str) -> Optional[dt.tzinfo]:
    'Get time zone from string. Return None if unable to determine.\n\n    Async friendly.\n    '
    try:
        return pytz.timezone(time_zone_str)
    except pytzexceptions.UnknownTimeZoneError:
        return None