Skip to content

Commit

Permalink
Suppress error output in iwscan run
Browse files Browse the repository at this point in the history
  • Loading branch information
davesteele committed Mar 1, 2024
1 parent 48dc20c commit 0e4de6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion comitup/iwscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ def docmd(cmd: str) -> str:
cmd = "timeout 5 " + cmd

try:
out = subprocess.check_output(cmd.split(), encoding="utf-8")
out = subprocess.check_output(
cmd.split(), encoding="utf-8", stderr=subprocess.PIPE
)
except subprocess.CalledProcessError:
out = ""

Expand Down

0 comments on commit 0e4de6d

Please sign in to comment.