@cryptotaxi247 / netdata-1 / commits / 12b5373b2

fix error when configuration file is empty

paulfantom committed Jul 8, 2016 at 11:59 UTC 12b5373b2ef0672116a8fdc9788508661cce6088
1 file changed +2
plugins.d/python.d.plugin
+2
@@ -206,6 +206,8 @@ class PythonCharts(object):
206 :param config: dict
207 :return: dict
208 """
209 + if config is None:
210 + config = {}
211 # get default values
212 defaults = {}
213 msg.debug(module.__name__ + ": reading configuration")