Bugfix stack trace from api (#5332)

This commit is contained in:
Pascal Vizeli 2017-01-15 17:36:24 +01:00 committed by Paulus Schoutsen
parent c458ee29f2
commit d7d428119b

View File

@ -133,6 +133,9 @@ class APIEventStream(HomeAssistantView):
except asyncio.TimeoutError: except asyncio.TimeoutError:
yield from to_write.put(STREAM_PING_PAYLOAD) yield from to_write.put(STREAM_PING_PAYLOAD)
except asyncio.CancelledError:
_LOGGER.debug('STREAM %s ABORT', id(stop_obj))
finally: finally:
_LOGGER.debug('STREAM %s RESPONSE CLOSED', id(stop_obj)) _LOGGER.debug('STREAM %s RESPONSE CLOSED', id(stop_obj))
unsub_stream() unsub_stream()