Skip to content

Commit

Permalink
Merge pull request #24 from cguillemette/remove-deprecation
Browse files Browse the repository at this point in the history
explicit loader to remove deprecation from yaml.load call
  • Loading branch information
jborchma authored Nov 19, 2019
2 parents 3fb89b6 + 4b5c4ff commit 46caad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtrade/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_access_token_yaml(token_yaml):
try:
with open(token_yaml) as yaml_file:
log.debug("Loading access token from yaml...")
token_yaml = yaml.load(yaml_file)
token_yaml = yaml.load(yaml_file, Loader=yaml.FullLoader)
except Exception:
log.error("Error loading access token from yaml...")
raise
Expand Down

0 comments on commit 46caad0

Please sign in to comment.