You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amcrest2mqtt/src
Jeff Culverhouse 5973fe2444 fix: prevent UnboundLocalError when large recordings are skipped
Fixed a crash that occurred when recordings >100MB were encountered.
The store_recording_in_media function was attempting to return file_name
outside the scope where it was defined, causing an UnboundLocalError when
get_recorded_file returned None for oversized recordings.

This fix moves the return statement inside the if recording: block and
adds an explicit return None for the case when recording is skipped.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2 weeks ago
..
amcrest2mqtt fix: prevent UnboundLocalError when large recordings are skipped 2 weeks ago
healthcheck.py feat!: complete MQTT and service refactor, add timestamp + event tracking, and new modular mixins 3 months ago