summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorfrank shin <im@frnkshin.io>2021-04-10 11:24:29 -0400
committerfrank shin <im@frnkshin.io>2021-04-10 11:24:29 -0400
commit909230a8acd0423a85322602453cddad372072d8 (patch)
tree33cb71fd781fdedc4dbd784066e0c39b91ce1239 /misc
parent46bedd5f61ef45621eefe7d37049d6e88601221e (diff)
downloadqutebrowser-909230a8acd0423a85322602453cddad372072d8.tar.gz
qutebrowser-909230a8acd0423a85322602453cddad372072d8.zip
Check bitwarden CLI tool return code instead of stderr to check for error
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/userscripts/qute-bitwarden4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/userscripts/qute-bitwarden b/misc/userscripts/qute-bitwarden
index 8f6f928fb..e94ab0a24 100755
--- a/misc/userscripts/qute-bitwarden
+++ b/misc/userscripts/qute-bitwarden
@@ -153,8 +153,8 @@ def pass_(domain, encoding, auto_lock):
stderr=subprocess.PIPE,
)
- err = process.stderr.decode(encoding).strip()
- if err:
+ if process.returncode:
+ err = process.stderr.decode(encoding).strip()
msg = 'Bitwarden CLI returned for {:s} - {:s}'.format(domain, err)
stderr(msg)
return '[]'