Skip to content

Commit 1be2c05

Browse files
authored
Merge pull request #68 from lfsando/master
yaml.load() to yaml.safe_load()
2 parents c145396 + 904319e commit 1be2c05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searchtweets/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _load_yaml_credentials(filename=None, yaml_key=None):
3131
"""
3232
try:
3333
with open(os.path.expanduser(filename)) as f:
34-
search_creds = yaml.load(f)[yaml_key]
34+
search_creds = yaml.safe_load(f)[yaml_key]
3535
except FileNotFoundError:
3636
logger.error("cannot read file {}".format(filename))
3737
search_creds = {}

0 commit comments

Comments
 (0)