Raise AttributeError in __getattr__
This commit is contained in:
parent
df28c41d4b
commit
ed264802a2
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user