Remove assert as a means of testing for self.title

svn: r12189
This commit is contained in:
Gary Burton 2009-03-01 12:16:57 +00:00
parent f8870a618c
commit a5d4c62bfc

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)