Skip to content

Commit

Permalink
feat: add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vndee committed Jul 6, 2024
1 parent 98b07ce commit 84c3f43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llm_sandbox/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ def close(self):
self.image.remove(force=True)
else:
raise ValueError("Invalid image type")
else:
if self.verbose:
print(
f"Image {self.image.tags[-1]} is in use by other containers. Skipping removal."
)

def run(self, code: str, libraries: List = []):
raise NotImplementedError
Expand Down

0 comments on commit 84c3f43

Please sign in to comment.