Skip to content

Commit

Permalink
Clear the output a bit when the interface is not in monitor mode
Browse files Browse the repository at this point in the history
  • Loading branch information
JustGuardian committed Jan 28, 2025
1 parent 68ea927 commit a589fd7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wifite/util/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ def pexception(exception):
# Don't dump trace for the "no targets found" case.
if 'No targets found' in str(exception):
return

# Don't dump trace for the "interface not in monitor mode" case.
if 'Enabled interface not in monitor mode' in str(exception):
return

from ..config import Configuration
if Configuration.verbose > 0 or Configuration.print_stack_traces:
Expand Down

0 comments on commit a589fd7

Please sign in to comment.