Coverage for /home/martinb/.local/share/virtualenvs/camcops/lib/python3.6/site-packages/pendulum/tz/exceptions.py : 67%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1class TimezoneError(ValueError):
3 pass
6class NonExistingTime(TimezoneError):
8 message = "The datetime {} does not exist."
10 def __init__(self, dt):
11 message = self.message.format(dt)
13 super(NonExistingTime, self).__init__(message)
16class AmbiguousTime(TimezoneError):
18 message = "The datetime {} is ambiguous."
20 def __init__(self, dt):
21 message = self.message.format(dt)
23 super(AmbiguousTime, self).__init__(message)