I'm trying to access the history of chrome browser which is a SQLite file. My code was working fine but recently I'm facing this error-
sqlite3.OperationalError: database is locked
Is there any solution?
I'm trying to access the history of chrome browser which is a SQLite file. My code was working fine but recently I'm facing this error-
sqlite3.OperationalError: database is locked
Is there any solution?
Set the timeout parameter:
connection = sqlite.connect('name.db', timeout=1)
Chrome locks the database when it is open. I have closed it and its started working.