mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 08:07:45 +00:00
* Fix #14919. Should throw exception when camera stream closed by frontend * Re-trigger CI * pythonic re-raise
This commit is contained in:
parent
dbae410cf4
commit
508d0459a7
@ -322,6 +322,7 @@ class Camera(Entity):
|
|||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
_LOGGER.debug("Stream closed by frontend.")
|
_LOGGER.debug("Stream closed by frontend.")
|
||||||
response = None
|
response = None
|
||||||
|
raise
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
if response is not None:
|
if response is not None:
|
||||||
|
@ -233,6 +233,7 @@ class ProxyCamera(Camera):
|
|||||||
_LOGGER.debug("Stream closed by frontend.")
|
_LOGGER.debug("Stream closed by frontend.")
|
||||||
req.close()
|
req.close()
|
||||||
response = None
|
response = None
|
||||||
|
raise
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
if response is not None:
|
if response is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user