use safe load

This commit is contained in:
2017-06-13 12:29:55 -04:00
parent 05bd0d1d42
commit 69abfc3ada
+1 -1
View File
@@ -33,7 +33,7 @@ def import_book(dbook, in_stream):
dbook.wipe()
for sheet in yaml.load(in_stream):
for sheet in yaml.safe_load(in_stream):
data = tablib.Dataset()
data.title = sheet['title']
data.dict = sheet['data']