Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d23182

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎asyncpg/protocol/settings.pyx‎

Copy file name to clipboardExpand all lines: asyncpg/protocol/settings.pyx
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.