Skip to content

Commit

Permalink
fix(serve): return self within context manager (#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm committed Feb 2, 2023
1 parent b1e95b0 commit aded17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/server/server.py
Expand Up @@ -39,7 +39,7 @@ def address(self) -> str:
return f"{self.host}:{self.port}"

def __enter__(self):
yield self
return self

def __exit__(
self,
Expand Down

0 comments on commit aded17c

Please sign in to comment.