Skip to content

Commit 4947ced

Browse files
committed
BUG: fix zero mass check
1 parent 8e4db26 commit 4947ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rocketpy/motors/motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def dry_mass(self, dry_mass):
370370
dry_mass : float
371371
Motor dry mass in kg.
372372
"""
373-
if dry_mass:
373+
if dry_mass is not None:
374374
if isinstance(dry_mass, (int, float)):
375375
self._dry_mass = dry_mass
376376
else:

0 commit comments

Comments
 (0)