summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-07 11:42:38 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-01-07 11:42:38 +0000
commitb987ccb766e8f738794b588b481b88c6f3405871 (patch)
treea4a3885698b5284f82c9343fc2d1c5ec7056e9c9
parentWhoops (diff)
downloadsynapse-github/rei/moh-commit_span.tar.xz
Use getattr() rather than __getattr__() github/rei/moh-commit_span rei/moh-commit_span
-rw-r--r--synapse/storage/database.py2
1 files changed, 1 insertions, 1 deletions
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(