File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -473,11 +473,7 @@ async def print_dom(app: Application) -> None:
473473
474474 asyncio .run (print_dom (new_app ()))
475475 elif args .ignore_missing_tty or sys .stdout .isatty ():
476- try :
477- app = new_app ()
478- app .run ()
479- finally :
480- app .cancel_force_exit_timer ()
476+ new_app ().run ()
481477 elif args .force_tty :
482478 open_stdout = "CONOUT$" if os .name == "nt" else "/dev/tty"
483479 open_stdin = "CONIN$" if os .name == "nt" else "/dev/tty"
@@ -504,11 +500,7 @@ async def print_dom(app: Application) -> None:
504500 from textual import constants
505501
506502 constants .COLOR_SYSTEM = "truecolor"
507- app = new_app ()
508- try :
509- app .run ()
510- finally :
511- app .cancel_force_exit_timer ()
503+ new_app ().run ()
512504 finally :
513505 if restore_standard_input is not None :
514506 restore_standard_input ()
You can’t perform that action at this time.
0 commit comments