commit | 82fc863aa62b624318fbc6e2945bc5d8e3b030d2 | [log] [tgz] |
---|---|---|
author | Paul Ganssle <paul@ganssle.io> | Sun Feb 03 10:17:23 2019 -0500 |
committer | Paul Ganssle <paul@ganssle.io> | Sun Feb 03 12:26:40 2019 -0500 |
tree | f638fea03cf284c4af31a5b1bceb0963b0124770 | |
parent | ee819bf84929cb24a549398a7b753f07f1ce4904 [diff] |
Catch UnicodeEncodeError for Windows in tz.gettz On Windows and Python 2.7, calling `tzwin` with a non-ascii name will raise a UnicodeEncodeError instead of WindowsError, as it does on other platforms and versions. Fixes GH #802.