Skip to content

Commit a589fd7

Browse files
committed
Clear the output a bit when the interface is not in monitor mode
1 parent 68ea927 commit a589fd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wifite/util/color.py

+4
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ def pexception(exception):
103103
# Don't dump trace for the "no targets found" case.
104104
if 'No targets found' in str(exception):
105105
return
106+
107+
# Don't dump trace for the "interface not in monitor mode" case.
108+
if 'Enabled interface not in monitor mode' in str(exception):
109+
return
106110

107111
from ..config import Configuration
108112
if Configuration.verbose > 0 or Configuration.print_stack_traces:

0 commit comments

Comments
 (0)