Changed yaml.load into yaml.safe_load (#9841)

This commit is contained in:
Adam Cooper authored and Paulus Schoutsen committed 2017-10-15 11:53:26 -07:00
1 parent 586e54f8bf
commit fdb698bef0
1 file changed
+1 -1
+1 -1
View File
@@ -269,7 +269,7 @@ def load_config(path):
calendars = {} calendars = {}
try: try:
with open(path) as file: with open(path) as file:
data = yaml.load(file) data = yaml.safe_load(file)
for calendar in data: for calendar in data:
try: try:
calendars.update({calendar[CONF_CAL_ID]: calendars.update({calendar[CONF_CAL_ID]: