]> git.sur5r.net Git - u-boot/blobdiff - tools/genboardscfg.py
tools/genboardscfg.py: no exception if columns undetectable
[u-boot] / tools / genboardscfg.py
index ffef2381a505b3a0220f57835878cac1f122afa8..e92e4f8880248cdbc0af8ade48db9cbd9ff6f3f2 100755 (executable)
@@ -58,8 +58,6 @@ def get_terminal_columns():
         try:
             ret = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, arg)
         except IOError as exception:
-            if exception.errno != errno.ENOTTY:
-                raise
             # If 'Inappropriate ioctl for device' error occurs,
             # stdout is probably redirected. Return 0.
             return 0
@@ -402,7 +400,7 @@ def __gen_boards_cfg(jobs):
       jobs: The number of jobs to run simultaneously
 
     Note:
-      The incomplete boards.cfg is left over when an error (including 
+      The incomplete boards.cfg is left over when an error (including
       the termination by the keyboard interrupt) occurs on the halfway.
     """
     check_top_directory()