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

Commit

Permalink
Checking for DBURL key before deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
cfcurtis committed Mar 17, 2023
1 parent 9bd590e commit 93439dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runestone/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ def rs2ptx(course, sourcedir, outdir):
"""
os.chdir(findProjectRoot())
sys.path.insert(0, os.getcwd())
del os.environ["DBURL"]
if "DBURL" in os.environ:
del os.environ["DBURL"]
try:
import pavement
except Exception as e:
Expand Down

0 comments on commit 93439dd

Please sign in to comment.