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:
commit
3efa42ec06
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user