Skip to content

Commit 96edfed

Browse files
Ryanf55tridge
authored andcommitted
Handle no plan
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
1 parent 4e82c7f commit 96edfed

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MAVProxy/modules/mavproxy_smartflight/smart_flight_planner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ def cmd_compute(self):
296296
self.uuid = uuid4()
297297
print(f"Created new plan with UUID: {self.uuid}")
298298
self._plan = self.post_plan() # TODO parse return
299+
if self._plan is None:
300+
return
299301

300302
if len(self._plan["paths"]) == 0:
301303
notifications = self._plan["notifications"]

0 commit comments

Comments
 (0)