~naglis/aio_mpv_ipc

dee63707178e0ff28377151c8c80ce45c57f803a — Naglis Jonaitis 1 year, 7 days ago a1c3fcb
Don't swallow `asyncio.CancelledError`
1 files changed, 3 insertions(+), 0 deletions(-)

M aio_mpv_ipc/_client.py
M aio_mpv_ipc/_client.py => aio_mpv_ipc/_client.py +3 -0
@@ 59,8 59,11 @@ async def start_mpv(
            ) from exc
        else:
            raise
    except asyncio.CancelledError:
        raise
    except Exception:
        logger.exception("An unexpected error occurred while executing mpv")
        raise
    finally:
        if terminate and mpv.returncode is None:
            mpv.terminate()