mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
account for old pysqlite versions
This commit is contained in:
parent
1604eb29d6
commit
40e7a93639
1 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,11 @@ class ProgressManager(object):
|
|||
"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."""
|
||||
|
||||
def _dbProgress(self):
|
||||
"Called from SQLite."
|
||||
|
|
Loading…
Reference in a new issue