Don't use bare 'except:'

They catch any exception, including KeyboardInterrupt, we don't want to catch it.
This commit is contained in:
Jaime Marquínez Ferrándiz 2015-03-27 13:02:20 +01:00
parent af14000215
commit 70a1165b32
8 changed files with 16 additions and 19 deletions

View file

@ -389,7 +389,7 @@ else:
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = sp.communicate()
lines, columns = map(int, out.split())
except:
except Exception:
pass
return _terminal_size(columns, lines)