You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "tribler\core\utilities\process_manager\manager.py", line 92, in connect
sqlite3.OperationalError: database is locked
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "run_tribler.py", line 109, in <module>
File "tribler\core\start_core.py", line 191, in run_core
File "tribler\core\utilities\process_manager\manager.py", line 40, in setup_process_manager
File "tribler\core\utilities\process_manager\utils.py", line 29, in new_method
File "tribler\core\utilities\process_manager\manager.py", line 59, in setup_current_process
File "contextlib.py", line 113, in __enter__
File "tribler\core\utilities\process_manager\manager.py", line 108, in connect
File "pathlib.py", line 1321, in unlink
The reason for the error is that OperationalError is a subclass of DatabaseError. Therefore, the condition if isinstance(e, sqlite3.DatabaseError) mistakenly handles OperationalError as well just as a generic DatabaseError.
The possible solution is to swap handling of OperationalError and DatabaseError to handle all cases of OperationalError first.
Also it may be good to wrap the unlink call in try/except to suppress the possible PermissionError.
The text was updated successfully, but these errors were encountered:
Here:
The reason for the error is that
OperationalError
is a subclass ofDatabaseError
. Therefore, the conditionif isinstance(e, sqlite3.DatabaseError)
mistakenly handlesOperationalError
as well just as a genericDatabaseError
.The possible solution is to swap handling of
OperationalError
andDatabaseError
to handle all cases ofOperationalError
first.Also it may be good to wrap the
unlink
call in try/except to suppress the possiblePermissionError
.The text was updated successfully, but these errors were encountered: