mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 02:01:13 +00:00
#71 Don't fail on non-exists dir in $PATH
This commit is contained in:
parent
82e2c89472
commit
798928b5ad
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
||||
|
||||
|
||||
setup(name='thefuck',
|
||||
version="1.20",
|
||||
version="1.21",
|
||||
description="Magnificent app which corrects your previous console command",
|
||||
author='Vladimir Iakovlev',
|
||||
author_email='nvbn.rm@gmail.com',
|
||||
|
@ -13,7 +13,7 @@ def _safe(fn, fallback):
|
||||
def _get_all_bins():
|
||||
return [exe.name
|
||||
for path in os.environ['PATH'].split(':')
|
||||
for exe in _safe(Path(path).iterdir, [])
|
||||
for exe in _safe(lambda: Path(path).iterdir(), [])
|
||||
if not _safe(exe.is_dir, True)]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user