mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Update pytz-2021.3
This commit is contained in:
parent
d76838a607
commit
9d78e6ae4c
122 changed files with 327 additions and 278 deletions
|
@ -8,7 +8,11 @@ __all__ = [
|
|||
]
|
||||
|
||||
|
||||
class UnknownTimeZoneError(KeyError):
|
||||
class Error(Exception):
|
||||
'''Base class for all exceptions raised by the pytz library'''
|
||||
|
||||
|
||||
class UnknownTimeZoneError(KeyError, Error):
|
||||
'''Exception raised when pytz is passed an unknown timezone.
|
||||
|
||||
>>> isinstance(UnknownTimeZoneError(), LookupError)
|
||||
|
@ -20,11 +24,18 @@ class UnknownTimeZoneError(KeyError):
|
|||
|
||||
>>> isinstance(UnknownTimeZoneError(), KeyError)
|
||||
True
|
||||
|
||||
And also a subclass of pytz.exceptions.Error, as are other pytz
|
||||
exceptions.
|
||||
|
||||
>>> isinstance(UnknownTimeZoneError(), Error)
|
||||
True
|
||||
|
||||
'''
|
||||
pass
|
||||
|
||||
|
||||
class InvalidTimeError(Exception):
|
||||
class InvalidTimeError(Error):
|
||||
'''Base class for invalid time exceptions.'''
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue