We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51161f9 commit 205e83dCopy full SHA for 205e83d
tests/test_components/test_source_frames.py
@@ -68,5 +68,5 @@ def test_source_absorber_frames():
68
)
69
],
70
71
- with pytest.raises(pydantic.ValidationError):
72
- _ = bad_sim._finalized
+ with pytest.raises(td.exceptions.Tidy3dError):
+ _ = bad_sim._validate_finalized()
tidy3d/components/simulation.py
@@ -2243,11 +2243,11 @@ def _validate_finalized(self):
2243
2244
try:
2245
_ = self._finalized
2246
- except Exception:
2247
- log.error(
+ except Exception as e:
+ raise Tidy3dError(
2248
"Simulation fails after requested mode source PEC frames are added. "
2249
"Please inspect '._finalized'."
2250
- )
+ ) from e
2251
2252
2253
class Simulation(AbstractYeeGridSimulation):
0 commit comments