Skip to content

Commit

Permalink
codetools
Browse files Browse the repository at this point in the history
  • Loading branch information
surgura committed Aug 26, 2024
1 parent 29b5b0f commit 473653f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtual_ship/expedition/verify_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def verify_schedule(
:param schedule: The schedule to verify.
:param input_data: Fieldsets that can be used to check for zero UV condition (is waypoint on land).
:raises PlanningError: If waypoints are not feasible or incorrect.
:raises NotImplementedError: If instrument is in schedule that is not implememented.
"""
if len(schedule.waypoints) == 0:
raise PlanningError("At least one waypoint must be provided.")
Expand Down Expand Up @@ -141,7 +142,7 @@ def verify_schedule(
"Planning has waypoint with drifter instrument, but configuration does not configure drifters."
)
else:
raise RuntimeError("Instrument not supported.")
raise NotImplementedError("Instrument not supported.")


class PlanningError(RuntimeError):
Expand Down

0 comments on commit 473653f

Please sign in to comment.