From cb132611c2df1f7161df1600e942f5ef18e2604d Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 13 Apr 2022 18:31:30 +0200 Subject: [PATCH] ui: get rid of unreachable else block The following commit added an unconditional return statement in the try block of _move_screen, effectively making the associated else block unreachable. a7bcc7fa add a way to wait for something with notification after 0.1s Signed-off-by: Olivier Gayot --- subiquitycore/tui.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/subiquitycore/tui.py b/subiquitycore/tui.py index 329cf23a..edd0d89a 100644 --- a/subiquitycore/tui.py +++ b/subiquitycore/tui.py @@ -234,8 +234,6 @@ class TuiApplication(Application): except Exception: self.controllers.index = cur_index raise - else: - return async def move_screen(self, increment, coro): view_or_callable = await self.wait_with_progress(