Add SQLITE_READONLY to environmental errors

This commit is contained in:
Florian Bruhin 2017-10-15 21:09:37 +02:00
parent e90a5f509e
commit fa4a66f7b3
2 changed files with 6 additions and 6 deletions

View File

@ -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
------ ------

View File

@ -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