diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-17 14:36:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-17 14:36:33 +0000 |
commit | 665666d6f4213da8db57ebb480947b7caf1fe382 (patch) | |
tree | 0cac5d322dfe861a6de62b04fb916cef6dbe4510 /pendulum/tz/exceptions.py | |
parent | Releasing debian version 3.0.0~a1-2. (diff) | |
download | pendulum-665666d6f4213da8db57ebb480947b7caf1fe382.tar.xz pendulum-665666d6f4213da8db57ebb480947b7caf1fe382.zip |
Merging upstream version 3.0.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pendulum/tz/exceptions.py')
-rw-r--r-- | pendulum/tz/exceptions.py | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/pendulum/tz/exceptions.py b/pendulum/tz/exceptions.py deleted file mode 100644 index b8833ac..0000000 --- a/pendulum/tz/exceptions.py +++ /dev/null @@ -1,32 +0,0 @@ -from __future__ import annotations - -from typing import TYPE_CHECKING - -if TYPE_CHECKING: - from datetime import datetime - - -class TimezoneError(ValueError): - pass - - -class InvalidTimezone(TimezoneError): - pass - - -class NonExistingTime(TimezoneError): - message = "The datetime {} does not exist." - - def __init__(self, dt: datetime) -> None: - message = self.message.format(dt) - - super().__init__(message) - - -class AmbiguousTime(TimezoneError): - message = "The datetime {} is ambiguous." - - def __init__(self, dt: datetime) -> None: - message = self.message.format(dt) - - super().__init__(message) |