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

Commit e5c0a97

Browse files
committed
Fix: avoid key errors
1 parent 6250015 commit e5c0a97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runestone/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ def build(all, wd):
204204
# Need a small config object with a dburl attribute just for update_library
205205
config = type("config", (object,), {})()
206206
config.dburl = get_dburl()
207-
course = pavement.options.project_name
207+
course = ""
208+
if hasattr(pavement.options, "project_name"):
209+
course = pavement.options.project_name
208210
if not course:
209211
course = pavement.options.template_args["course_id"]
210212
update_library(config, "", course, click, build_system="Runestone")

0 commit comments

Comments
 (0)