Merge pull request #5473 from stu-gott/tts-cache
TTS: Invalidate broken file cache entriespull/5478/head
commit
db97ad4485
|
@ -346,6 +346,7 @@ class SpeechManager(object):
|
|||
try:
|
||||
data = yield from self.hass.loop.run_in_executor(None, load_speech)
|
||||
except OSError:
|
||||
del self.file_cache[key]
|
||||
raise HomeAssistantError("Can't read {}".format(voice_file))
|
||||
|
||||
self._async_store_to_memcache(key, filename, data)
|
||||
|
|
Loading…
Reference in New Issue