mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
#N/A: FIx new flake8 warnings
This commit is contained in:
parent
08082e606b
commit
68df7154e5
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user