SQLite Forum

How to circumvent "apsw.BusyError: BusyError: database is locked"?
Login
There are cases which a busy timeout cannot trigger and you might be hitting one of them. See <https://www.sqlite.org/c3ref/busy_handler.html>, fourth paragraph.