Skip to content

Commit 9c5e922

Browse files
committed
1 parent 249b119 commit 9c5e922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cbapi/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ def __getattr__(self, item):
218218
if item in self._info:
219219
return self._info[item]
220220
else:
221-
raise
221+
raise AttributeError("'{0}' object has no attribute '{1}'".format(self.__class__.__name__,
222+
item))
222223

223224
def __setattr__(self, attrname, val):
224225
if attrname.startswith("_"):

0 commit comments

Comments
 (0)