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>pull/106/head
parent
6d0a0d007d
commit
5973fe2444
Loading…
Reference in New Issue