Skip to content

Commit

Permalink
added path failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
CornHusker89 committed Jan 23, 2024
1 parent 320d2fe commit 6a03452
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

try:
for line in instructions:

if not "*" in path:
raise Exception("DEBUG: path must contain a * (forward this error to rat and/or corn)")

path = line[0].replace("*", lc_path)
instruction = line[1]

Expand Down

0 comments on commit 6a03452

Please sign in to comment.