summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-07-13 10:50:38 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-07-28 12:45:33 +0200
commit8b31933e4fd474204e4ff74803f3c2b074faefcf (patch)
treee37649ce3b817f82c751f029a87b97d345200bf0
parentc056964d80181601d11e9d9d177e279028cde5c2 (diff)
downloadqutebrowser-8b31933e4fd474204e4ff74803f3c2b074faefcf.tar.gz
qutebrowser-8b31933e4fd474204e4ff74803f3c2b074faefcf.zip
qute-keepass: Add missing exit
Closes #6592 (cherry picked from commit cc8e67962bae163eac80fe20e753aa90491bc6da)
-rwxr-xr-xmisc/userscripts/qute-keepass1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/userscripts/qute-keepass b/misc/userscripts/qute-keepass
index 090d3c713..285377ffc 100755
--- a/misc/userscripts/qute-keepass
+++ b/misc/userscripts/qute-keepass
@@ -178,6 +178,7 @@ def find_candidates(args, host):
kp = pykeepass.PyKeePass(file_path, password=pw, keyfile=kf)
except Exception as e:
stderr("There was an error opening the DB: {}".format(str(e)))
+ sys.exit(ExitCodes.DB_OPEN_FAIL)
return kp.find_entries(url="{}{}{}".format(".*", host, ".*"), regex=True)