summaryrefslogtreecommitdiff
path: root/qutebrowser/misc
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-08-26 17:03:46 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-08-26 17:03:46 +0200
commit03736ff0ddebdd94841d170ce5d31327bec21f3d (patch)
treeef0fee44a50649883255e33f123cf5594b338a87 /qutebrowser/misc
parentc716c5ce40f987dd21e8d114d6a40813cb584d5b (diff)
downloadqutebrowser-03736ff0ddebdd94841d170ce5d31327bec21f3d.tar.gz
qutebrowser-03736ff0ddebdd94841d170ce5d31327bec21f3d.zip
More random API changes
Diffstat (limited to 'qutebrowser/misc')
-rw-r--r--qutebrowser/misc/elf.py2
-rw-r--r--qutebrowser/misc/sql.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/qutebrowser/misc/elf.py b/qutebrowser/misc/elf.py
index e1c4ace29..03e8ca0d6 100644
--- a/qutebrowser/misc/elf.py
+++ b/qutebrowser/misc/elf.py
@@ -314,7 +314,7 @@ def parse_webenginecore() -> Optional[Versions]:
# Flatpak has Qt in /usr/lib/x86_64-linux-gnu, but QtWebEngine in /app/lib.
library_path = pathlib.Path("/app/lib")
else:
- library_path = pathlib.Path(QLibraryInfo.location(QLibraryInfo.LibraryLocation.LibrariesPath))
+ library_path = pathlib.Path(QLibraryInfo.path(QLibraryInfo.LibraryPath.LibrariesPath))
library_name = sorted(library_path.glob('libQt5WebEngineCore.so*'))
if not library_name:
diff --git a/qutebrowser/misc/sql.py b/qutebrowser/misc/sql.py
index 8d732774e..ea3c93703 100644
--- a/qutebrowser/misc/sql.py
+++ b/qutebrowser/misc/sql.py
@@ -324,7 +324,7 @@ class Query:
self.query.bindValue(f':{key}', val)
bound_values = self.bound_values()
- if None in bound_values.values():
+ if None in bound_values:
raise BugError("Missing bound values!")
return bound_values