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

Merge branch 'master' of https://github.com/awonnacott/thefuck into awonnacott-master

This commit is contained in:
Vladimir Iakovlev 2017-03-13 13:45:45 +01:00
commit 3efa42ec06

View File

@ -24,8 +24,11 @@ def get_pkgfile(command):
).splitlines()
return [package.split()[0] for package in packages]
except subprocess.CalledProcessError:
return None
except subprocess.CalledProcessError as err:
if err.returncode == 1 and err.output == "":
return []
else:
raise err
def archlinux_env():