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 <olivier.gayot@canonical.com>
This commit is contained in:
parent
414a2235e6
commit
cb132611c2
|
@ -234,8 +234,6 @@ class TuiApplication(Application):
|
||||||
except Exception:
|
except Exception:
|
||||||
self.controllers.index = cur_index
|
self.controllers.index = cur_index
|
||||||
raise
|
raise
|
||||||
else:
|
|
||||||
return
|
|
||||||
|
|
||||||
async def move_screen(self, increment, coro):
|
async def move_screen(self, increment, coro):
|
||||||
view_or_callable = await self.wait_with_progress(
|
view_or_callable = await self.wait_with_progress(
|
||||||
|
|
Loading…
Reference in New Issue