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

Commit fe7a9c1

Browse files
authored
Merge pull request #1391 from MRU-COMP1701-dev/bug_fix
Checking for DBURL key before deleting
2 parents ec49e57 + 93439dd commit fe7a9c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runestone/__main__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ def rs2ptx(course, sourcedir, outdir):
340340
"""
341341
os.chdir(findProjectRoot())
342342
sys.path.insert(0, os.getcwd())
343-
del os.environ["DBURL"]
343+
if "DBURL" in os.environ:
344+
del os.environ["DBURL"]
344345
try:
345346
import pavement
346347
except Exception as e:

0 commit comments

Comments
 (0)