8000 Fix: Error.getattr() should not mask absence of __notes__ attribute · FirebirdSQL/python3-base@180e305 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 180e305

Browse files
committed
Fix: Error.getattr() should not mask absence of __notes__ attribute
1 parent 59c3476 commit 180e305

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/firebird/base/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ def __init__(self, *args, **kwargs):
7676
for name, value in kwargs.items():
7777
setattr(self, name, value)
7878
def __getattr__(self, name):
79+
if name == '__notes__':
80+
raise AttributeError
7981
return None
8082

8183
# Singletons

0 commit comments

Comments
 (0)
0