Skip to content

Commit

Permalink
Fix AttributeError exception (MagicStack#632)
Browse files Browse the repository at this point in the history
Accessing settings._settings raises an AttributeError exception because 
object.__getattr__ does not exist.
  • Loading branch information
petriborg authored Nov 26, 2020
1 parent 5ddabb1 commit 0d23182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asyncpg/protocol/settings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<ConnectionSettings {!r}>'.format(self._settings)

0 comments on commit 0d23182

Please sign in to comment.