Skip to content

Commit

Permalink
Use safe_load() instead of load()
Browse files Browse the repository at this point in the history
  • Loading branch information
fridex committed Mar 13, 2019
1 parent 3d16b90 commit 3952c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bots/sesheta/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def init_github_interface(SESHETA_GITHUB_ACCESS_TOKEN):
github = Github(SESHETA_GITHUB_ACCESS_TOKEN)

with open("config.yaml", 'r') as config:
RUNTIME_CONFIG = yaml.load(config)
RUNTIME_CONFIG = yaml.safe_load(config)

GITHUB_ORGANIZATION = RUNTIME_CONFIG['organization']
GITHUB_REPOSITORIES = RUNTIME_CONFIG['repositories']
Expand Down

0 comments on commit 3952c22

Please sign in to comment.