From 0cab72ef1e1dd11936c7bfee74645907f6f25fa7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 10 Jun 2010 13:24:35 +0900 Subject: [PATCH] remove string exceptions for python2.6 --- ankiqt/ui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 3fadb763f..dddb5539d 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -250,7 +250,7 @@ Please do not file a bug report with Anki.
""") 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)