Skip to content

Commit

Permalink
Redirect output to devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiri committed Jul 2, 2023
1 parent 21d0916 commit e8eeac8
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 open(os.devnull, "w") as thevoid:
with redirect_stdout(thevoid), redirect_stderr(thevoid):
await run_process_messages()

finally:
Expand Down

0 comments on commit e8eeac8

Please sign in to comment.