Skip to content

Commit

Permalink
Merge pull request mandatoryprogrammer#1 from innoying/patch-1
Browse files Browse the repository at this point in the history
Use YAML safe_load instead of load just in case
  • Loading branch information
bored-engineer committed May 31, 2016
2 parents 895d20f + 6db66bc commit 9f2878f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/apiserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

try:
with open( '../config.yaml', 'r' ) as f:
settings = yaml.load( f )
settings = yaml.safe_load( f )
except IOError:
print "Error reading config.yaml, have you created one? (Hint: Try running ./generate_config.py)"
exit()
Expand Down

0 comments on commit 9f2878f

Please sign in to comment.