arg.append('-V')
cmd = subprocess.Popen(arg, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- except Exception, e:
+ except Exception as e:
logger.info("Could run run tshark check: " + str(e))
cmd = None
return None
if display is None: display = []
try:
return _run_tshark(filename, filter, display, wait)
- except UnknownFieldsException, e:
+ except UnknownFieldsException as e:
all_wlan_mgt = True
for f in e.fields:
if not f.startswith('wlan_mgt.'):
try:
cmd = subprocess.Popen(arg, stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
- except Exception, e:
+ except Exception as e:
logger.info("Could run run tshark: " + str(e))
return None
output = cmd.communicate()