Remove assert as a means of testing for self.title
svn: r12188
This commit is contained in:
parent
ae56bee828
commit
b5f738859a
@ -65,9 +65,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
|
|||||||
self.filter = filter
|
self.filter = filter
|
||||||
|
|
||||||
# Set window title, some selectors may set self.title in their __init__
|
# Set window title, some selectors may set self.title in their __init__
|
||||||
try:
|
if not hasattr(self, 'title'):
|
||||||
assert self.title
|
|
||||||
except AttributeError:
|
|
||||||
self.title = self.get_window_title()
|
self.title = self.get_window_title()
|
||||||
|
|
||||||
ManagedWindow.ManagedWindow.__init__(self, uistate, track, self)
|
ManagedWindow.ManagedWindow.__init__(self, uistate, track, self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user