Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
for path in path_list:
try:
s = os.stat(path)
- except OSError, e:
+ except OSError:
continue
if last_mod_time is None or s.st_mtime >= last_mod_time:
path_entries.append((path, s))
def func_output(cap, label, func):
if cap in entries:
- t = str(func).split()
data[label] = {'cap': cap, 'func': func}
file_output(CAP_NETWORK_STATUS, [OPENVSWITCH_COMPACT_DB])
else:
file_output(CAP_NETWORK_STATUS, [OPENVSWITCH_CONF_DB])
- except OSError, e:
+ except OSError:
return