Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0691d53

Browse files
committed
Fix: do not crash if missing description
1 parent 49b225a commit 0691d53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runestone/server/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ def update_library(
271271
# update course description if found in the book's conf.py
272272
if "course_description" in config_vars:
273273
description = config_vars["course_description"]
274+
else:
275+
description = ""
274276
# update course key_words if found in book's conf.py
275277
if "key_words" in config_vars:
276278
key_words = config_vars["key_words"]

0 commit comments

Comments
 (0)