1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#N/A: FIx new flake8 warnings

This commit is contained in:
Vladimir Iakovlev 2017-10-25 19:31:03 +02:00
parent 08082e606b
commit 68df7154e5
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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