mirror of
https://github.com/home-assistant/core.git
synced 2025-06-01 19:57:07 +00:00
Add error message for duplicate stream recordings (#75654)
This commit is contained in:
parent
5c234a3504
commit
b71e3397fd
@ -163,4 +163,10 @@ class RecorderOutput(StreamOutput):
|
||||
_LOGGER.error("Recording failed to capture anything")
|
||||
else:
|
||||
output.close()
|
||||
os.rename(self.video_path + ".tmp", self.video_path)
|
||||
try:
|
||||
os.rename(self.video_path + ".tmp", self.video_path)
|
||||
except FileNotFoundError:
|
||||
_LOGGER.error(
|
||||
"Error writing to '%s'. There are likely multiple recordings writing to the same file",
|
||||
self.video_path,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user