Merge pull request #5 from weirdtangent/fix/unbound-local-error-file-name

fix: prevent UnboundLocalError when large recordings are skipped
pull/106/head
Jeff Culverhouse 2 weeks ago committed by GitHub
commit 5c0588bdd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -290,7 +290,9 @@ class HelpersMixin:
self.logger.error(f"failed to save symlink {latest_link} -> {local_file}: {err!r}")
pass
return file_name
return file_name
return None
async def cleanup_old_recordings(self: Amcrest2Mqtt) -> None:
media_path = self.config["media"].get("path")

Loading…
Cancel
Save