mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
remove string exceptions for python2.6
This commit is contained in:
parent
7d22ef3c8d
commit
0cab72ef1e
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ Please do not file a bug report with Anki.<br>""")
|
||||||
|
|
||||||
def updateViews(self, status):
|
def updateViews(self, status):
|
||||||
if self.deck is None and status != "noDeck":
|
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:
|
for view in self.views:
|
||||||
view.setState(status)
|
view.setState(status)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue