add dan transition noies and fix json loading

This commit is contained in:
Anthony Samms
2025-11-01 13:09:20 -04:00
parent 157b79440f
commit 4656845551
2 changed files with 12 additions and 4 deletions

View File

@@ -888,7 +888,7 @@ class DanCourse(FileSystemItem):
super().__init__(path, name)
if name != "dan.json":
self.logging.error(f"Invalid dan course file: {path}")
with open(path, 'r') as f:
with open(path, 'r', encoding='utf-8') as f:
data = json.load(f)
self.title = data["title"]
self.color = data["color"]