Add SQLITE_READONLY to environmental errors
This commit is contained in:
parent
e90a5f509e
commit
fa4a66f7b3
@ -32,6 +32,7 @@ Fixed
|
|||||||
|
|
||||||
- Fixed workaround for black screens with Nvidia cards
|
- Fixed workaround for black screens with Nvidia cards
|
||||||
- Mark the content.notifications setting as QtWebKit only correctly
|
- Mark the content.notifications setting as QtWebKit only correctly
|
||||||
|
- Handle a filesystem going read-only gracefully
|
||||||
|
|
||||||
v1.0.1
|
v1.0.1
|
||||||
------
|
------
|
||||||
|
@ -65,13 +65,12 @@ class SqliteError(SqlError):
|
|||||||
log.sql.debug("error code: {}".format(error.nativeErrorCode()))
|
log.sql.debug("error code: {}".format(error.nativeErrorCode()))
|
||||||
|
|
||||||
# https://sqlite.org/rescode.html
|
# https://sqlite.org/rescode.html
|
||||||
|
# https://github.com/qutebrowser/qutebrowser/issues/2930
|
||||||
|
# https://github.com/qutebrowser/qutebrowser/issues/3004
|
||||||
environmental_errors = [
|
environmental_errors = [
|
||||||
# SQLITE_LOCKED,
|
'8', # SQLITE_READONLY
|
||||||
# https://github.com/qutebrowser/qutebrowser/issues/2930
|
'9', # SQLITE_LOCKED,
|
||||||
'9',
|
'13', # SQLITE_FULL,
|
||||||
# SQLITE_FULL,
|
|
||||||
# https://github.com/qutebrowser/qutebrowser/issues/3004
|
|
||||||
'13',
|
|
||||||
]
|
]
|
||||||
self.environmental = error.nativeErrorCode() in environmental_errors
|
self.environmental = error.nativeErrorCode() in environmental_errors
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user