On 12/28/2012 1:02 PM, Lennart Regebro wrote: > On Thu, Dec 20, 2012 at 5:43 PM, Barry Warsaw <barry at python.org > <mailto:barry at python.org>> wrote: > > > That would be `class UnknownTimeZoneError(ValueError, TimeZoneError)`. > > > As of today, in Pytz, UnknownTimeZoneError in fact subclasses KeyError. > Any opinions against that? Since the erroneous value is used as a key for a database lookup, and the error is probably detected by trying the lookup, I think that is ok. even if the user does not use []s. > There is no TimeZoneError today, and it would only be used for this > UnknownTimeZoneError, so I'm not sure it has much value. -- Terry Jan Reedy
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4