# HG changeset patch # User Paul Boddie # Date 1381472917 -7200 # Node ID 569fcdda39b9d1900898f23529142860bf5f4705 # Parent e472e3641070431eb5f39d73b210e5ed20d85c8b Fixed DateSupport to handle NonExistentTimeError. diff -r e472e3641070 -r 569fcdda39b9 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 e472e3641070 -r 569fcdda39b9 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) ------------------------------------------------------