diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-03-27 13:02:20 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2015-03-27 13:02:20 +0100 |
commit | 70a1165b32acf253905109e9b4f245295d67af1f (patch) | |
tree | d217fe80bed21e76accf73cd767804b231d1fe93 /youtube_dl/compat.py | |
parent | af140002158c1079b1365392c6a48ea06ad23c82 (diff) |
Don't use bare 'except:'
They catch any exception, including KeyboardInterrupt, we don't want to catch it.
Diffstat (limited to 'youtube_dl/compat.py')
-rw-r--r-- | youtube_dl/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/compat.py b/youtube_dl/compat.py index b2bf149ef..973bcd320 100644 --- a/youtube_dl/compat.py +++ b/youtube_dl/compat.py @@ -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) |