mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-23 13:28:39 +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):
|
for file_name in os.listdir(brew_formula_path):
|
||||||
if file_name.endswith('.rb'):
|
if file_name.endswith('.rb'):
|
||||||
yield file_name[:-3]
|
yield file_name[:-3]
|
||||||
except:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ def _is_bad_zip(file):
|
|||||||
try:
|
try:
|
||||||
with zipfile.ZipFile(file, 'r') as archive:
|
with zipfile.ZipFile(file, 'r') as archive:
|
||||||
return len(archive.namelist()) > 1
|
return len(archive.namelist()) > 1
|
||||||
except:
|
except Exception:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
@ -11,5 +11,5 @@ def get_brew_path_prefix():
|
|||||||
try:
|
try:
|
||||||
return subprocess.check_output(['brew', '--prefix'],
|
return subprocess.check_output(['brew', '--prefix'],
|
||||||
universal_newlines=True).strip()
|
universal_newlines=True).strip()
|
||||||
except:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user