# HG changeset patch # User Paul Boddie # Date 1381472917 -7200 # Node ID c20f465c7a727824aa077b91571e922c0c092f40 # Parent ed1ac2f07aa5f3b3fdbb64b89481cfbb6601afe4 Fixed DateSupport to handle NonExistentTimeError. diff -r ed1ac2f07aa5 -r c20f465c7a72 DateSupport.py --- a/DateSupport.py Tue Jul 23 00:17:58 2013 +0200 +++ b/DateSupport.py Fri Oct 11 08:28:37 2013 +0200 @@ -669,7 +669,7 @@ try: return self._as_olson_datetime() - except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError): + except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError, pytz.NonExistentTimeError): # Try again, using an earlier local time and then stepping forward # in the chosen zone. @@ -685,7 +685,7 @@ try: self._as_olson_datetime() - except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError): + except (pytz.UnknownTimeZoneError, pytz.AmbiguousTimeError, pytz.NonExistentTimeError): return 1 return 0 diff -r ed1ac2f07aa5 -r c20f465c7a72 README.txt --- a/README.txt Tue Jul 23 00:17:58 2013 +0200 +++ b/README.txt Fri Oct 11 08:28:37 2013 +0200 @@ -69,6 +69,7 @@ * Introduced an explicit error condition where pytz is not installed and an attempt is made to inspect Olson time zone information. + * Fixed DateSupport to handle NonExistentTimeError. New in MoinSupport 0.4 (Changes since MoinSupport 0.3) ------------------------------------------------------