mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 18:11:48 +04:00
output before try
This commit is contained in:
parent
4416c3d512
commit
818a909222
1 changed files with 4 additions and 4 deletions
|
|
@ -78,11 +78,11 @@ def install_environment(
|
|||
|
||||
|
||||
def get_docker_user() -> Tuple[str, ...]: # pragma: win32 no cover
|
||||
output = subprocess.check_output(
|
||||
('docker', 'system', 'info'),
|
||||
text=True,
|
||||
)
|
||||
try:
|
||||
output = subprocess.check_output(
|
||||
('docker', 'system', 'info'),
|
||||
text=True,
|
||||
)
|
||||
for line in output.splitlines():
|
||||
# rootless docker has "rootless"
|
||||
# rootless podman has "rootless: true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue