1.1 --- a/DateSupport.py Tue Jul 23 00:17:58 2013 +0200
1.2 +++ b/DateSupport.py Fri Oct 11 08:28:37 2013 +0200
1.3 @@ -669,7 +669,7 @@
1.4
1.5 try:
1.6 return self._as_olson_datetime()
1.7 - except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError):
1.8 + except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError, pytz.NonExistentTimeError):
1.9
1.10 # Try again, using an earlier local time and then stepping forward
1.11 # in the chosen zone.
1.12 @@ -685,7 +685,7 @@
1.13
1.14 try:
1.15 self._as_olson_datetime()
1.16 - except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError):
1.17 + except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError, pytz.NonExistentTimeError):
1.18 return 1
1.19
1.20 return 0
2.1 --- a/README.txt Tue Jul 23 00:17:58 2013 +0200
2.2 +++ b/README.txt Fri Oct 11 08:28:37 2013 +0200
2.3 @@ -69,6 +69,7 @@
2.4
2.5 * Introduced an explicit error condition where pytz is not installed and an
2.6 attempt is made to inspect Olson time zone information.
2.7 + * Fixed DateSupport to handle NonExistentTimeError.
2.8
2.9 New in MoinSupport 0.4 (Changes since MoinSupport 0.3)
2.10 ------------------------------------------------------