mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
tools/genboardscfg.py: no exception if columns undetectable
The existing terminalsize detection raised an exception on build server. Just removes the exception. This also deactivates the progress indicator. Remove a trainling whitespace. Signed-off-by: Roger Meier <roger@bufferoverflow.ch> CC: Masahiro Yamada <yamada.m@jp.panasonic.com> CC: Tom Rini <trini@ti.com>
This commit is contained in:
parent
ca418dd74b
commit
5b12b7a193
1 changed files with 1 additions and 3 deletions
|
@ -58,8 +58,6 @@ def get_terminal_columns():
|
||||||
try:
|
try:
|
||||||
ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg)
|
ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg)
|
||||||
except IOError as exception:
|
except IOError as exception:
|
||||||
if exception.errno != errno.ENOTTY:
|
|
||||||
raise
|
|
||||||
# If 'Inappropriate ioctl for device' error occurs,
|
# If 'Inappropriate ioctl for device' error occurs,
|
||||||
# stdout is probably redirected. Return 0.
|
# stdout is probably redirected. Return 0.
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue