fixed bug with loading cred yaml and added to gitignore

This commit is contained in:
dj346 2021-12-18 01:47:01 -08:00
parent b82cccc54a
commit 6f2491a0a7
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
.vscode .vscode
output/ output/
credentials.yaml

View File

@ -14,7 +14,7 @@ import yaml
try: try:
with open("credentials.yaml", 'r') as f: with open("credentials.yaml", 'r') as f:
credentials = yaml.load(f) credentials = yaml.full_load(f)
except OSError: except OSError:
# Canvas API URL # Canvas API URL
API_URL = "" API_URL = ""