@cryptotaxi247 / netdata-1 / commits / d5cb27366

handling bad configurations

paulfantom committed Jun 14, 2016 at 20:06 UTC d5cb2736636c4957b2742d563e811db253273eef
1 file changed +4 -1
plugins.d/python.d.plugin
+4 -1
@@ -100,7 +100,10 @@ class PythonCharts(object):
100 if os.path.isfile(configfile):
101 debug("loading chart options: '" + configfile + "'")
102 for k, v in read_config(configfile).items():
103 - setattr(m, k, v)
103 + try:
104 + setattr(m, k, v)
105 + except AttributeError:
106 + self._disable_module(m,"misbehaving having bad configuration")
107 else:
108 debug(m.__name__ +
109 ": configuration file '" +