Skip to content

Commit

Permalink
fix: fixes errors in pre-task execution in cli.py
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Jun 27, 2023
1 parent 895924d commit cc5f189
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trestlebot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def run() -> None:
if args.assemble_model:
assembled_type: types.AuthoredType
try:
assembled_type = types.check_authored_type(args.assembled_model)
assembled_type = types.check_authored_type(args.assemble_model)
except ValueError:
logging.error(
f"Invalid value {args.assemble_model} for assemble model. \
Expand All @@ -133,14 +133,14 @@ def run() -> None:
logging.error("Must set markdown path with assemble model.")
sys.exit(1)

if args.assemble_model == "ssp" & args.ssp_index_path == "":
if args.assemble_model == "ssp" and args.ssp_index_path == "":
logging.error("Must set ssp_index_path when using SSP as assemble model.")
sys.exit(1)

assemble_task = AssembleTask(
args.working_dir,
assembled_type,
args.markdown_dir,
args.markdown_path,
args.ssp_index_path,
)
pre_tasks.append(assemble_task)
Expand Down

0 comments on commit cc5f189

Please sign in to comment.