Skip to content

Commit 9f2878f

Browse files
Merge pull request #1 from innoying/patch-1
Use YAML safe_load instead of load just in case
2 parents 895d20f + 6db66bc commit 9f2878f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/apiserver.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
try:
3232
with open( '../config.yaml', 'r' ) as f:
33-
settings = yaml.load( f )
33+
settings = yaml.safe_load( f )
3434
except IOError:
3535
print "Error reading config.yaml, have you created one? (Hint: Try running ./generate_config.py)"
3636
exit()

0 commit comments

Comments
 (0)