py3 always has a db progress handler

This commit is contained in:
Damien Elmes 2017-08-16 11:50:00 +10:00
parent b28ca8c0d1
commit ca9d80c014

View file

@ -29,11 +29,7 @@ class ProgressManager:
"Install a handler in the current DB." "Install a handler in the current DB."
self.lastDbProgress = 0 self.lastDbProgress = 0
self.inDB = False self.inDB = False
try: db.set_progress_handler(self._dbProgress, 10000)
db.set_progress_handler(self._dbProgress, 10000)
except:
print("""\
Your pysqlite2 is too old. Anki will appear frozen during long operations.""")
def _dbProgress(self): def _dbProgress(self):
"Called from SQLite." "Called from SQLite."