This PR resolves an issue where an OSError was being thrown when trying to access terminal size in non-TTY environments like Docker containers. The error was evident when debug=True.
Tested in Docker container to verify the function now operates correctly in these environments.
This PR resolves an issue where an OSError was being thrown when trying to access terminal size in non-TTY environments like Docker containers. The error was evident when debug=True.
Tested in Docker container to verify the function now operates correctly in these environments.