Merge pull request #5473 from stu-gott/tts-cache

TTS: Invalidate broken file cache entries
This commit is contained in:
Robbie Trencheny 2017-01-20 17:44:32 -08:00 committed by GitHub
commit db97ad4485

View file

@ -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)