From b987ccb766e8f738794b588b481b88c6f3405871 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 7 Jan 2022 11:42:38 +0000 Subject: Use getattr() rather than __getattr__() --- synapse/storage/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/database.py b/synapse/storage/database.py index bdffa72c88..3f848ca86f 100644 --- a/synapse/storage/database.py +++ b/synapse/storage/database.py @@ -113,7 +113,7 @@ def make_pool( self.commit = trace(connection.commit, "db.conn.commit") def __getattr__(self, item): - return self._connection.__getattr__(item) + return getattr(self._connection, item) engine.on_new_connection( LoggingDatabaseConnection( -- cgit 1.4.1