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
|
||||
- Mark the content.notifications setting as QtWebKit only correctly
|
||||
- Handle a filesystem going read-only gracefully
|
||||
|
||||
v1.0.1
|
||||
------
|
||||
|
@ -65,13 +65,12 @@ class SqliteError(SqlError):
|
||||
log.sql.debug("error code: {}".format(error.nativeErrorCode()))
|
||||
|
||||
# https://sqlite.org/rescode.html
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/2930
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/3004
|
||||
environmental_errors = [
|
||||
# SQLITE_LOCKED,
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/2930
|
||||
'9',
|
||||
# SQLITE_FULL,
|
||||
# https://github.com/qutebrowser/qutebrowser/issues/3004
|
||||
'13',
|
||||
'8', # SQLITE_READONLY
|
||||
'9', # SQLITE_LOCKED,
|
||||
'13', # SQLITE_FULL,
|
||||
]
|
||||
self.environmental = error.nativeErrorCode() in environmental_errors
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user