Skip to content

Commit

Permalink
Redirect output to devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiri authored Jul 2, 2023
1 parent 21d0916 commit 62b106d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/textual/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1978,8 +1978,8 @@ async def invoke_ready_callback() -> None:
with redirect_stdout(redirector): # type: ignore
await run_process_messages()
else:
with redirect_stderr(None):
with redirect_stdout(None):
with redirect_stderr(open(os.devnull, 'w')):
with redirect_stdout(open(os.devnull, 'w')):
await run_process_messages()

finally:
Expand Down

0 comments on commit 62b106d

Please sign in to comment.