Skip to content

Commit 3d4c78c

Browse files
committed
raise more detailed error if attribute not found
1 parent 7c08508 commit 3d4c78c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libtmux/common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ def __getattr__(self, key):
228228
try:
229229
return self._info[self.formatter_prefix + key]
230230
except:
231-
raise AttributeError
231+
raise AttributeError('%s has no property %s' %
232+
(self.__class__, key))
232233

233234

234235
class TmuxRelationalObject(object):

0 commit comments

Comments
 (0)