Skip to content

Commit 2388f18

Browse files
MNT: add conditional check for aerodynamic surfaces before drawing rocket
1 parent 89aa65a commit 2388f18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

rocketpy/plots/rocket_plots.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,10 @@ def all(self):
681681
"""
682682

683683
# Rocket draw
684-
print("\nRocket Draw")
685-
print("-" * 40)
686-
self.draw()
684+
if len(self.rocket.aerodynamic_surfaces) > 0:
685+
print("\nRocket Draw")
686+
print("-" * 40)
687+
self.draw()
687688

688689
# Mass Plots
689690
print("\nMass Plots")

0 commit comments

Comments
 (0)