Remove assert as a means of testing for self.title

svn: r12188
This commit is contained in:
Gary Burton 2009-03-01 12:16:43 +00:00
parent ae56bee828
commit b5f738859a

View File

@ -65,9 +65,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
self.filter = filter
# Set window title, some selectors may set self.title in their __init__
try:
assert self.title
except AttributeError:
if not hasattr(self, 'title'):
self.title = self.get_window_title()
ManagedWindow.ManagedWindow.__init__(self, uistate, track, self)