akarneliuk / pygnmi

The pure Python implementation of the gNMI client.
https://training.karneliuk.com
BSD 3-Clause "New" or "Revised" License
126 stars 44 forks source link

fix: debug=True prevents non-tty environment from executing #128

Closed Pegasust closed 10 months ago

Pegasust commented 1 year ago

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.