fix(avatar): support legacy deployment Python
This commit is contained in:
@@ -74,7 +74,9 @@ def main():
|
||||
|
||||
def inspect_container(name, errors):
|
||||
try:
|
||||
output = subprocess.check_output(["docker", "inspect", name], text=True)
|
||||
output = subprocess.check_output(
|
||||
["docker", "inspect", name], universal_newlines=True
|
||||
)
|
||||
return json.loads(output)[0]
|
||||
except Exception as exc:
|
||||
errors.append(f"cannot inspect container {name!r}: {exc}")
|
||||
|
||||
Reference in New Issue
Block a user