Skip to content

Commit 252d392

Browse files
MateusStanoCopilot
andauthored
ENH: copilot suggestion
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 68ff563 commit 252d392

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rocketpy/rocket/rocket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2296,7 +2296,7 @@ def _count_positional_args(callable_obj):
22962296
return self.__process_drag_input(
22972297
Function(list(input_data)), coeff_name
22982298
)
2299-
except Exception as e:
2299+
except (TypeError, ValueError) as e:
23002300
raise ValueError(
23012301
f"Invalid list/tuple format for {coeff_name}. Expected "
23022302
"a list of [mach, coefficient] pairs or a list of "

0 commit comments

Comments
 (0)