Skip to content

Commit 650b654

Browse files
committed
remove nesting of try
1 parent 3c73914 commit 650b654

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/textual/_animator.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ async def start(self) -> None:
189189
async def stop(self) -> None:
190190
"""Stop the animator task."""
191191
try:
192-
try:
193-
await self._timer.stop()
194-
except asyncio.CancelledError:
195-
pass
192+
await self._timer.stop()
193+
except asyncio.CancelledError:
194+
pass
196195
finally:
197196
self._idle_event.set()
198197

0 commit comments

Comments
 (0)