When building the CLDR data from scratch the process would break on
windows because the timezone mapping is not available yet.
This fixes #43.
converted properly by the subtag resolving. This for instance
showed up when trying to use ``und_UK`` as a language code
which now properly resolves to ``en_GB``.
+- Fixed a bug that made it impossible to import the CLDR data
+ from scratch on windows systems.
Version 1.3
-----------
import pytz
-tz_names = get_global('windows_zone_mapping')
+# When building the cldr data on windows this module gets imported.
+# Because at that point there is no global.dat yet this call will
+# fail. We want to catch it down in that case then and just assume
+# the mapping was empty.
+try:
+ tz_names = get_global('windows_zone_mapping')
+except RuntimeError:
+ tz_names = {}
def valuestodict(key):