sqlite3.OperationalError: database is locked¶
This error means another process is already using the same .session SQLite file.
Causes:
You are running two instances of the same client simultaneously.
A previous run crashed without closing the database properly.
Fix:
Make sure only one instance of your script is running.
If the error persists after a crash, delete the
.sessionfile and re-authorize, or switch to a different storage engine.