Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Fix deprecation warning when working with commands #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zeerayne
Copy link

@zeerayne zeerayne commented Feb 5, 2020

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

Added loader as described in doc. Works perfect, no deprecation warnings.

@old-adapdr
Copy link

Should probably be yaml.safe_load() ?

@MikeLP
Copy link

MikeLP commented Jun 9, 2020

Common guys. Is it so complicated to apply this only line?
config = yaml.load(fd, Loader=yaml.SafeLoader)

@old-adapdr
Copy link

Common guys. Is it so complicated to apply this only line?
config = yaml.load(fd, Loader=yaml.SafeLoader)

project is frozen atm and is being continued over at masonite orm :) @MikeLP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants