Update YAML load().
This commit is contained in:
parent
d293464ff4
commit
f268776f1e
|
@ -76,7 +76,7 @@ class PDFDocument(object):
|
|||
self.club_infos = None
|
||||
with open(os.path.join(current_path, "site_config.yaml"), "r") as stream:
|
||||
try:
|
||||
self.club_infos = yaml.load(stream)
|
||||
self.club_infos = yaml.load(stream, Loader=yaml.FullLoader)
|
||||
except yaml.YAMLError as exc:
|
||||
print(exc)
|
||||
|
||||
|
|
Loading…
Reference in New Issue