Tachi67 commited on
Commit
9c146b2
·
1 Parent(s): 58c9ba8

Update PlanFileEditAtomicFlow.py

Browse files
Files changed (1) hide show
  1. PlanFileEditAtomicFlow.py +1 -1
PlanFileEditAtomicFlow.py CHANGED
@@ -38,7 +38,7 @@ class PlanFileEditAtomicFlow(AtomicFlow):
38
  return False, str(e), file_location, 0
39
 
40
  def _check_input(self, input_data: Dict[str, Any]):
41
- assert any(item in input_data for item in ["plan", "new_plan"]) in input_data, "plan or new_plan is not passed to PlanFileEditAtomicFlow"
42
  assert "plan_file_location" in input_data, "plan_file_location not passed to PlanFileEditAtomicFlow"
43
  plan_file_loc = input_data["plan_file_location"]
44
  assert os.path.exists(plan_file_loc), f"{plan_file_loc} does not exist"
 
38
  return False, str(e), file_location, 0
39
 
40
  def _check_input(self, input_data: Dict[str, Any]):
41
+ assert any(item in input_data for item in ["plan", "new_plan"]), "plan or new_plan is not passed to PlanFileEditAtomicFlow"
42
  assert "plan_file_location" in input_data, "plan_file_location not passed to PlanFileEditAtomicFlow"
43
  plan_file_loc = input_data["plan_file_location"]
44
  assert os.path.exists(plan_file_loc), f"{plan_file_loc} does not exist"