Unverified Commit cef6d69a authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #19631 from mvdbeek/invalid_input_format_parameter_exception

[24.2] Raise ``RequestParameterInvalidException`` on invalid ``input_format`` parameter
parents e3942053 a6f836b7
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -546,7 +546,9 @@ def populate_state(
                    errors[input.name] = error
                state[input.name] = value
    else:
        raise Exception(f"Input format {input_format} not recognized; input_format must be either legacy or 21.01.")
        raise RequestParameterInvalidException(
            f"Input format {input_format} not recognized; input_format must be either legacy or 21.01."
        )


def _populate_state_legacy(