summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-09-01 12:40:02 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-01 22:17:50 +0200
commitfafae11adfe545b6aefb010fb69917c457e053aa (patch)
tree2935854c1e6574b64e523289195affcaea35d36a
parentb76c50d7fab80780a25e3c17f5d39abe60dd0940 (diff)
downloadqutebrowser-fafae11adfe545b6aefb010fb69917c457e053aa.tar.gz
qutebrowser-fafae11adfe545b6aefb010fb69917c457e053aa.zip
Mark SQLITE_IOERR/SQLITE_CANTOPEN as environmental error
Fixes #3060 IOERR: The SQLITE_IOERR result code says that the operation could not finish because the operating system reported an I/O error. CANTOPEN: The SQLITE_CANTOPEN result code indicates that SQLite was unable to open a file. The file in question might be a primary database file or on of several temporary disk files.
-rw-r--r--qutebrowser/misc/sql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py
index 9b09fb132..863961ed3 100644
--- a/qutebrowser/misc/sql.py
+++ b/qutebrowser/misc/sql.py
@@ -70,8 +70,10 @@ class SqliteError(SqlError):
environmental_errors = [
'5', # SQLITE_BUSY ("database is locked")
'8', # SQLITE_READONLY
+ '10', # SQLITE_IOERR
'11', # SQLITE_CORRUPT
'13', # SQLITE_FULL
+ '14', # SQLITE_CANTOPEN
]
# At least in init(), we can get errors like this:
# type: ConnectionError