remove string exceptions for python2.6

This commit is contained in:
Damien Elmes 2010-06-10 13:24:35 +09:00
parent 7d22ef3c8d
commit 0cab72ef1e

View file

@ -250,7 +250,7 @@ Please do not file a bug report with Anki.<br>""")
def updateViews(self, status):
if self.deck is None and status != "noDeck":
raise "updateViews() called with no deck. status=%s" % status
raise Exception("updateViews() called with no deck. status=%s" % status)
for view in self.views:
view.setState(status)