jbr_monitor_bssids.py: checks argument type for a nested list

Signed-off-by: Jed Reynolds <jed@bitratchet.com>
This commit is contained in:
Jed Reynolds
2021-11-08 13:38:10 -08:00
parent 86bb4fa42c
commit 8678a55862

View File

@@ -160,7 +160,10 @@ class BssidMonitor(Realm):
exit_on_error=True)
if args and args.debugging:
pprint(args.debugging)
# we could have a nested list here?
for item in args.debugging:
if (type(item) is list):
item = item[0]
if item.startswith("tag:"):
Logg.register_tag(item[item.rindex(":"):])
if item.startswith("method:"):
@@ -202,6 +205,7 @@ class BssidMonitor(Realm):
port='all',
endp='all')
time.sleep(0.2)
event_response = self.lf_query.events_last_events(event_count=1,
debug=self.debug,
wait_sec=1,