From ad677013bf53de0d186a359f2eb6b93ed29be281 Mon Sep 17 00:00:00 2001 From: Julio Machado Date: Fri, 19 Jul 2024 18:53:48 -0300 Subject: [PATCH] ENH: removing unnecessary try except --- rocketpy/rocket/rocket.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rocketpy/rocket/rocket.py b/rocketpy/rocket/rocket.py index 98f2ffa7f..1c246a9e0 100644 --- a/rocketpy/rocket/rocket.py +++ b/rocketpy/rocket/rocket.py @@ -964,10 +964,7 @@ def add_surfaces(self, surfaces, positions): for surface, position in zip(surfaces, positions): self.aerodynamic_surfaces.add(surface, position) if isinstance(surface, RailButtons): - try: - self.rail_buttons.add(surface, position) - except TypeError: - self.rail_buttons.add(surface, positions) + self.rail_buttons.add(surface, position) except TypeError: self.aerodynamic_surfaces.add(surfaces, positions)