@cryptotaxi247 / netdata-1 / commits / 53ad2c8a5

python.d.plugin: fixes #2109

Ilya committed Apr 22, 2017 at 23:18 UTC 53ad2c8a5ced420305f446fc4204645f5955c79a
1 file changed +4 -4
plugins.d/python.d.plugin
+4 -4
@@ -460,11 +460,11 @@ def read_config(path):
460 config = ordered_load(stream, yaml.SafeLoader)
461 else:
462 config = yaml.load(stream)
463 - except (OSError, IOError):
464 - msg.error(str(path), "is not a valid configuration file")
463 + except (OSError, IOError) as error:
464 + msg.error(str(path), 'reading error:', str(error))
465 return None
466 - except yaml.YAMLError as e:
467 - msg.error(str(path), "is malformed:", e)
466 + except yaml.YAMLError as error:
467 + msg.error(str(path), "is malformed:", str(error))
468 return None
469 return config
470