summaryrefslogtreecommitdiff
path: root/misc/userscripts/qute-bitwarden
diff options
context:
space:
mode:
Diffstat (limited to 'misc/userscripts/qute-bitwarden')
-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 '[]'