Fix check

This commit is contained in:
Nicolas Mowen 2023-08-03 16:13:20 -06:00 committed by GitHub
parent 05f964bb14
commit d10990140f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,7 @@ class AudioEventMaintainer(threading.Thread):
audio = np.frombuffer(chunk, dtype=np.int16) audio = np.frombuffer(chunk, dtype=np.int16)
self.detect_audio(audio) self.detect_audio(audio)
except Exception as e: except Exception as e:
self.logger.error("Error reading audio data from ffmpeg process: {e}") self.logger.error(f"Error reading audio data from ffmpeg process: {e}")
log_and_restart() log_and_restart()
def run(self) -> None: def run(self) -> None: