diff --git a/anki/deck.py b/anki/deck.py index e5e32dbb2..5a1ba3198 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -2814,7 +2814,8 @@ class DeckStorage(object): path = "sqlite:///" + path if pool: # open and lock connection for single use - engine = create_engine(path, connect_args={'timeout': 0}) + engine = create_engine(path, connect_args={'timeout': 0}, + strategy="threadlocal") else: # no pool & concurrent access w/ timeout engine = create_engine(path,