Skip to content

Commit d83b516

Browse files
committed
fix(main.py): add return statement to exit console function when running in non-interactive mode to prevent unnecessary console input prompts
1 parent e5efae7 commit d83b516

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tux/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ async def change_activity(self) -> None:
7474
async def console(self) -> None:
7575
if not os.isatty(sys.stdin.fileno()):
7676
logger.info("Running in a non-interactive mode. Skipping console input.")
77+
return
7778
logger.info("Console is ready. Type 'help' for a list of commands.")
7879
while True:
7980
# Use asyncio.run_in_executor to run input in a separate thread

0 commit comments

Comments
 (0)