def sniffing(interface, cb):
 try:
  sniff(iface=interface, prn=cb, stop_filter=stopfilter, store=False, lfilter=(lambda p: ((Dot11Beacon in p) or (Dot11ProbeResp in p))))
 except socket.error as e:
  if (e.errno == 100):
   pass
  else:
   raise

def sniffing ( interface , cb ) : try : sniff ( iface = interface , prn = cb , stop_filter = stopfilter , store = False , lfilter = ( lambda p : ( ( Dot11Beacon in p ) or ( Dot11ProbeResp in p ) ) ) ) except socket . error as e : if ( e . errno == 100 ) : pass else : raise
this exists for if/when i get deauth working so that its easy to call sniff() in a thread .