Skip to content

Commit

Permalink
Don't put pass/rbw stderr content in stdout so as to not add errors i…
Browse files Browse the repository at this point in the history
…nto clipboard.
  • Loading branch information
jle64 committed Jul 1, 2022
1 parent 7fb89ae commit 2acdad5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnome-pass-search-provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_bw_result_set(self, terms):
name = "".join(terms[1:])

password_list = subprocess.check_output(
["rbw", "list"], stderr=subprocess.STDOUT, universal_newlines=True
["rbw", "list"], universal_newlines=True
).split("\n")[:-1]

results = [
Expand Down Expand Up @@ -159,7 +159,7 @@ def send_password_to_gpaste(self, base_args, name, field=None):
)

output = subprocess.check_output(
base_args + [name], stderr=subprocess.STDOUT, universal_newlines=True
base_args + [name], universal_newlines=True
)
if field is not None:
match = re.search(
Expand Down

0 comments on commit 2acdad5

Please sign in to comment.