diff options
author | Florian Bruhin <me@the-compiler.org> | 2022-08-26 17:50:53 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2022-08-26 19:11:15 +0200 |
commit | ee4d6e0396a6b570f4d5592a9c4c1a9fee1027b6 (patch) | |
tree | 16cdb2c8bdbedfa15d578b1e7bdc2f3798dd5ec6 /scripts | |
parent | 6ffc5174eade1d99f3069e4128af7026e69f9ab1 (diff) | |
download | qutebrowser-ee4d6e0396a6b570f4d5592a9c4c1a9fee1027b6.tar.gz qutebrowser-ee4d6e0396a6b570f4d5592a9c4c1a9fee1027b6.zip |
sql: Add *all* primary sqlite result codes
For three reasons:
- There are only 31 of them, and we don't really expect any more to
turn up (last happened in 2013, and we have a test for it happening)
- It makes for nicer debug output
- It always felt strange to only have a small subset in the enum
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/dev/run_vulture.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index 901abe235..1e71b08d2 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -31,7 +31,7 @@ import vulture import qutebrowser.app # pylint: disable=unused-import from qutebrowser.extensions import loader -from qutebrowser.misc import objects +from qutebrowser.misc import objects, sql from qutebrowser.utils import utils, version, qtutils # To run the decorators from there # pylint: disable=unused-import @@ -150,6 +150,9 @@ def whitelist_generator(): # noqa: C901 for name in list(qtutils.LibraryPath): yield f'qutebrowser.utils.qtutils.LibraryPath.{name}' + for name in list(sql.SqliteErrorCode): + yield f'qutebrowser.misc.sql.SqliteErrorCode.{name}' + def filter_func(item): """Check if a missing function should be filtered or not. |