Raise AttributeError in __getattr__

This commit is contained in:
Kenneth Lyons 2019-09-23 21:19:01 -07:00
parent df28c41d4b
commit ed264802a2

View File

@ -48,7 +48,7 @@ class TabWindow(QtGui.QMainWindow):
if hasattr(self.cw, attr):
return getattr(self.cw, attr)
else:
raise NameError(attr)
raise AttributeError(attr)
class PlotWindow(PlotWidget):