diff --git a/samples/file_center_of_mass/file_center_of_mass.py b/samples/file_center_of_mass/file_center_of_mass.py index 1c90b62..5c9f1ac 100755 --- a/samples/file_center_of_mass/file_center_of_mass.py +++ b/samples/file_center_of_mass/file_center_of_mass.py @@ -29,6 +29,9 @@ if isinstance(fm, Error) or fm is None: raise Exception("There was a problem") +if fm.center_of_mass is None: + raise Exception("There was a problem") + print(f"File center of mass (meters): {fm.center_of_mass}") partInfo = {