From c193dd2e9f31c9196dee667b7b7da845fdc4a97e Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 6 Jan 2024 18:50:42 -0800 Subject: [PATCH] fix mypy Signed-off-by: Jess Frazelle --- samples/file_center_of_mass/file_center_of_mass.py | 3 +++ 1 file changed, 3 insertions(+) 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 = {