Correct flake8 errors after STYLE builder update

Fix new flake8 errors related to bare excepts and ambiguous
variable names due to a STYLE builder update.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6776
This commit is contained in:
Giuseppe Di Natale
2017-10-23 14:01:43 -07:00
committed by Brian Behlendorf
parent d9daa7abcf
commit 63e5e960ba
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ def get_terminal_lines():
data = fcntl.ioctl(sys.stdout.fileno(), termios.TIOCGWINSZ, '1234')
sz = struct.unpack('hh', data)
return sz[0]
except:
except Exception:
pass