summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Di Natale <[email protected]>2017-10-23 14:01:43 -0700
committerTony Hutter <[email protected]>2017-11-20 16:19:23 -0600
commitc45254b0ecccd7e9b26b84fe605cdb87901f3ba9 (patch)
treed2fbde4f25a2af738efa361f536ace9e57064616 /cmd
parent318fdeb51f244c76ed03b40ef42ebdf7c510862a (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Giuseppe Di Natale <[email protected]> Closes #6776
Diffstat (limited to 'cmd')
-rwxr-xr-xcmd/arcstat/arcstat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/arcstat/arcstat.py b/cmd/arcstat/arcstat.py
index b743fd8bc..d969da8d4 100755
--- a/cmd/arcstat/arcstat.py
+++ b/cmd/arcstat/arcstat.py
@@ -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