diff options
author | Florian Bruhin <git@the-compiler.org> | 2017-10-15 21:09:37 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-10-15 21:10:31 +0200 |
commit | 9404c61f106daba97514900f74a840ba7fb1759c (patch) | |
tree | b16d7ce38d1db812cd4df7badcdf5c1870abe262 | |
parent | 01d2654c235c306998d16289995364540361fd59 (diff) | |
download | qutebrowser-9404c61f106daba97514900f74a840ba7fb1759c.tar.gz qutebrowser-9404c61f106daba97514900f74a840ba7fb1759c.zip |
Add SQLITE_READONLY to environmental errors
(cherry picked from commit fa4a66f7b38ed038e11f74011c796e2577b3f005)
-rw-r--r-- | doc/changelog.asciidoc | 1 | ||||
-rw-r--r-- | qutebrowser/misc/sql.py | 11 |
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/changelog.asciidoc b/doc/changelog.asciidoc index 00281d562..1ce5e8feb 100644 --- a/doc/changelog.asciidoc +++ b/doc/changelog.asciidoc @@ -23,6 +23,7 @@ Fixes - 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 ------ diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py index 5b0d3361d..e04c3f6e3 100644 --- a/qutebrowser/misc/sql.py +++ b/qutebrowser/misc/sql.py @@ -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 |