From ca9d80c0141d1933202fb32b270969d1b9dadc04 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 16 Aug 2017 11:50:00 +1000 Subject: [PATCH] py3 always has a db progress handler --- aqt/progress.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aqt/progress.py b/aqt/progress.py index e6fc4e6e8..6c10984e5 100644 --- a/aqt/progress.py +++ b/aqt/progress.py @@ -29,11 +29,7 @@ class ProgressManager: "Install a handler in the current DB." self.lastDbProgress = 0 self.inDB = False - try: - db.set_progress_handler(self._dbProgress, 10000) - except: - print("""\ -Your pysqlite2 is too old. Anki will appear frozen during long operations.""") + db.set_progress_handler(self._dbProgress, 10000) def _dbProgress(self): "Called from SQLite."