callat-qcd / espressodb

Science database interface using Django as the content manager.
https://espressodb.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

YAML Load Warning #13

Closed ckoerber closed 5 years ago

ckoerber commented 5 years ago

I received the following error message:

YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

The yaml loads should be adjusted to fit the standard.

ckoerber commented 5 years ago

The solution is to use safe_load instead of load (since we use basic yaml api that's possible). See also https://msg.pyyaml.org/load.

It also turns out the unsafe load was in the app which used EspressoDB not in EspressoDB itself.