``psycopg`` release notes
=========================
+Future releases
+---------------
+
+Psycopg 3.1.2 (unreleased)
+^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+- Fix handling of certain invalid time zones causing problems on Windows
+ (:ticket:`#371`).
+
+
Current release
---------------
except (KeyError, OSError):
logger.warning("unknown PostgreSQL timezone: %r; will use UTC", sname)
zi = timezone.utc
+ except Exception as ex:
+ logger.warning(
+ "error handling PostgreSQL timezone: %r; will use UTC (%s - %s)",
+ sname,
+ type(ex).__name__,
+ ex,
+ )
+ zi = timezone.utc
_timezones[tzname] = zi
return zi
"unknown PostgreSQL timezone: %r; will use UTC", sname
)
zi = timezone_utc
+ except Exception as ex:
+ logger.warning(
+ "error handling PostgreSQL timezone: %r; will use UTC (%s - %s)",
+ sname,
+ type(ex).__name__,
+ ex,
+ )
+ zi = timezone.utc
_timezones[tzname] = zi
return zi