From f7857c352101927a8e3aa625996181ce42b86884 Mon Sep 17 00:00:00 2001 From: Peter Cooner Date: Mon, 5 Oct 2020 13:16:33 -0700 Subject: [PATCH] Fix AttributeError exception Accessing settings._settings raises an AttributeError exception because object.__getattr__ does not exist --- asyncpg/protocol/settings.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncpg/protocol/settings.pyx b/asyncpg/protocol/settings.pyx index 6121fce4..9ab32f39 100644 --- a/asyncpg/protocol/settings.pyx +++ b/asyncpg/protocol/settings.pyx @@ -107,7 +107,7 @@ cdef class ConnectionSettings(pgproto.CodecContext): except KeyError: raise AttributeError(name) from None - return object.__getattr__(self, name) + return object.__getattribute__(self, name) def __repr__(self): return ''.format(self._settings)