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

TTS: Invalidate broken file cache entries
pull/5478/head
Robbie Trencheny 2017-01-20 17:44:32 -08:00 committed by GitHub
commit db97ad4485
1 changed files with 1 additions and 0 deletions

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)