mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
remove nesting of try
This commit is contained in:
@@ -189,10 +189,9 @@ class Animator:
|
|||||||
async def stop(self) -> None:
|
async def stop(self) -> None:
|
||||||
"""Stop the animator task."""
|
"""Stop the animator task."""
|
||||||
try:
|
try:
|
||||||
try:
|
await self._timer.stop()
|
||||||
await self._timer.stop()
|
except asyncio.CancelledError:
|
||||||
except asyncio.CancelledError:
|
pass
|
||||||
pass
|
|
||||||
finally:
|
finally:
|
||||||
self._idle_event.set()
|
self._idle_event.set()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user