From 7942f0ecc20d3bd1cddff26b1b5d9cd06ded5d0e Mon Sep 17 00:00:00 2001 From: Samuel Lopez <85613111+Samuelopez-ansys@users.noreply.github.com> Date: Fri, 24 Nov 2023 08:42:20 +0100 Subject: [PATCH] Update pyaedt/modeler/circuits/PrimitivesEmit.py --- pyaedt/modeler/circuits/PrimitivesEmit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyaedt/modeler/circuits/PrimitivesEmit.py b/pyaedt/modeler/circuits/PrimitivesEmit.py index 6f176c653f0..98b1c68c137 100644 --- a/pyaedt/modeler/circuits/PrimitivesEmit.py +++ b/pyaedt/modeler/circuits/PrimitivesEmit.py @@ -828,7 +828,7 @@ def set_band_stop_frequency(self, band_node, band_stop_freq, units=""): if float(band_node.props["StartFrequency"]) > freq_float_in_Hz: # pragma: no cover if freq_float_in_Hz > 1: band_node._set_prop_value({"StartFrequency": str(freq_float_in_Hz - 1)}) - else: + else: # pragma: no cover raise ValueError("Band stop frequency is less than start frequency.") freq_string = "{}".format(freq_float_in_Hz) prop_list = {"StopFrequency": freq_string}