From 68df7154e527fa134464fa9b9e8f4462c9811aba Mon Sep 17 00:00:00 2001 From: Vladimir Iakovlev Date: Wed, 25 Oct 2017 19:31:03 +0200 Subject: [PATCH] #N/A: FIx new flake8 warnings --- thefuck/rules/brew_install.py | 2 +- thefuck/rules/dirty_unzip.py | 2 +- thefuck/specific/brew.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/thefuck/rules/brew_install.py b/thefuck/rules/brew_install.py index dea23f44..08d3ea0f 100644 --- a/thefuck/rules/brew_install.py +++ b/thefuck/rules/brew_install.py @@ -15,7 +15,7 @@ def _get_formulas(): for file_name in os.listdir(brew_formula_path): if file_name.endswith('.rb'): yield file_name[:-3] - except: + except Exception: pass diff --git a/thefuck/rules/dirty_unzip.py b/thefuck/rules/dirty_unzip.py index 3f74ef14..5369dea7 100644 --- a/thefuck/rules/dirty_unzip.py +++ b/thefuck/rules/dirty_unzip.py @@ -8,7 +8,7 @@ def _is_bad_zip(file): try: with zipfile.ZipFile(file, 'r') as archive: return len(archive.namelist()) > 1 - except: + except Exception: return False diff --git a/thefuck/specific/brew.py b/thefuck/specific/brew.py index d56c0e07..d0362c7c 100644 --- a/thefuck/specific/brew.py +++ b/thefuck/specific/brew.py @@ -11,5 +11,5 @@ def get_brew_path_prefix(): try: return subprocess.check_output(['brew', '--prefix'], universal_newlines=True).strip() - except: + except Exception: return None