We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c145396 + 904319e commit 1be2c05Copy full SHA for 1be2c05
searchtweets/credentials.py
@@ -31,7 +31,7 @@ def _load_yaml_credentials(filename=None, yaml_key=None):
31
"""
32
try:
33
with open(os.path.expanduser(filename)) as f:
34
- search_creds = yaml.load(f)[yaml_key]
+ search_creds = yaml.safe_load(f)[yaml_key]
35
except FileNotFoundError:
36
logger.error("cannot read file {}".format(filename))
37
search_creds = {}
0 commit comments