Skip to content

Commit 30bd6c6

Browse files
committed
fix(data_model): fix a pyright finding
1 parent 7bdf21b commit 30bd6c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ardupilot_methodic_configurator/data_model_parameter_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ def _validate_uploaded_parameters(self, selected_params: dict) -> list[str]:
10771077
self._flight_controller.fc_parameters[param_name],
10781078
)
10791079
param_upload_error.append(param_name)
1080-
if param_name not in self._flight_controller.fc_parameters:
1080+
if param_name not in self._flight_controller.fc_parameters and param is not None:
10811081
logging_error(
10821082
_("Parameter %s upload to the flight controller failed. Expected: %f, Actual: N/A"),
10831083
param_name,

0 commit comments

Comments
 (0)