diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py index e04c3f6e3..f19de698f 100644 --- a/qutebrowser/misc/sql.py +++ b/qutebrowser/misc/sql.py @@ -68,9 +68,9 @@ class SqliteError(SqlError): # https://github.com/qutebrowser/qutebrowser/issues/2930 # https://github.com/qutebrowser/qutebrowser/issues/3004 environmental_errors = [ + '5', # SQLITE_BUSY ("database is locked") '8', # SQLITE_READONLY - '9', # SQLITE_LOCKED, - '13', # SQLITE_FULL, + '13', # SQLITE_FULL ] self.environmental = error.nativeErrorCode() in environmental_errors diff --git a/tests/unit/misc/test_sql.py b/tests/unit/misc/test_sql.py index fdd5c89c8..89c442b2b 100644 --- a/tests/unit/misc/test_sql.py +++ b/tests/unit/misc/test_sql.py @@ -39,7 +39,7 @@ def test_sqlerror(): class TestSqliteError: @pytest.mark.parametrize('error_code, environmental', [ - ('9', True), # SQLITE_LOCKED + ('5', True), # SQLITE_BUSY ('19', False), # SQLITE_CONSTRAINT ]) def test_environmental(self, error_code, environmental):