Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Nov 30, 2024
1 parent d25ffdb commit e212798
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frigate/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,16 @@ def verify_recording_segments_setup_with_reasonable_time(
try:
seg_arg_index = record_args.index("-segment_time")
except ValueError:
raise ValueError(f"Camera {camera_config.name} has no segment_time in \
recording output args, segment args are required for record.")
raise ValueError(
f"Camera {camera_config.name} has no segment_time in \
recording output args, segment args are required for record."
)

if int(record_args[seg_arg_index + 1]) > 60:
raise ValueError(f"Camera {camera_config.name} has invalid segment_time output arg, \
segment_time must be 60 or less.")
raise ValueError(
f"Camera {camera_config.name} has invalid segment_time output arg, \
segment_time must be 60 or less."
)


def verify_zone_objects_are_tracked(camera_config: CameraConfig) -> None:
Expand Down

0 comments on commit e212798

Please sign in to comment.