Fix TypeError when reading Docker container logs. Ref #2522

This commit is contained in:
grossmj 2025-04-18 13:47:29 +07:00
parent 0e89ff56a8
commit d06f93e772
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7

View File

@ -1202,7 +1202,7 @@ class DockerVM(BaseNode):
"""
result = await self.manager.query("GET", "containers/{}/logs".format(self._cid), params={"stderr": 1, "stdout": 1})
return result
return result.decode('utf-8', errors='ignore').strip()
async def delete(self):
"""