Skip to content

Commit 0d23182

Browse files
authored
Fix AttributeError exception (#632)
Accessing settings._settings raises an AttributeError exception because object.__getattr__ does not exist.
1 parent 5ddabb1 commit 0d23182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/protocol/settings.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ cdef class ConnectionSettings(pgproto.CodecContext):
107107
except KeyError:
108108
raise AttributeError(name) from None
109109

110-
return object.__getattr__(self, name)
110+
return object.__getattribute__(self, name)
111111

112112
def __repr__(self):
113113
return '<ConnectionSettings {!r}>'.format(self._settings)

0 commit comments

Comments
 (0)