Update PlanFileEditAtomicFlow.py
Browse files
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 "plan" in input_data, "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"]) 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"
|