# scan directory specified in path and load all modules from there
names = os.listdir(path)
for mod in names:
- if mod.replace(MODULE_EXTENSION,"") in disabled:
- error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,""))
+ if mod.replace(MODULE_EXTENSION, "") in disabled:
+ error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION, ""))
continue
m = self._import_module(path + mod)
if m is not None:
"options": "'' absolute 1 1000000"}
]},
'bytespersec': {
- 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilbits/s' statistics apache.bytesperreq area",
+ 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilobits/s' statistics apache.bytesperreq area",
'lines': [
{"name": "size_sec",
"options": "'' absolute 8 1000000000"}
if str(tmp[0]) in self.assignment:
try:
data[self.assignment[tmp[0]]] = int(tmp[1])
- except (IndexError, ValueError) as a:
+ except (IndexError, ValueError):
pass
if len(data) == 0:
return None