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 d411a22 commit a298685Copy full SHA for a298685
rocketpy/simulation/monte_carlo.py
@@ -372,7 +372,14 @@ def __export_flight_data(
372
}
373
374
if self.export_function is not None:
375
- additional_exports = self.export_function(flight)
+ try:
376
+ additional_exports = self.export_function(flight)
377
+ except Exception as e:
378
+ raise ValueError(
379
+ "An error was encountered running your custom export function. "
380
+ "Check for errors in 'export_function' definition."
381
+ ) from e
382
+
383
for key in additional_exports.keys():
384
if key in self.export_list:
385
raise ValueError(
0 commit comments