YAMLLoadWarning
oleraj opened this issue · 2 comments
oleraj commented
Hi,
I'm getting a warning when I run a gemini load
command. It barks 5 times with this error below. It doesn't seem to affect functionality but is there anything we can do to get rid of the warning?
.../lib/python2.7/site-packages/gemini/config.py:61: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
config = yaml.load(in_handle)
Thanks,
Andrew
roryk commented
Thanks Andrew! the yaml
library considers these bare yaml.load
calls unsafe and is deprecating them. I swapped in safe_load
which does some checking to make sure we're not running python code in the YAML file, so this error should be fixed.