Commit f62df1a
fix: Process.exists() returns True when tool is missing due to operator precedence bug
`not stdout == stderr == ''` is evaluated as `not (stdout == stderr == '')`
which returns True when stderr is non-empty (e.g. "service not found"),
causing wifite to believe the tool exists and then crash with FileNotFoundError.
Replace with `bool(stdout)` — which is non-empty only when `which` actually
found the binary.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e5fc123 commit f62df1a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments