Skip to content

Commit

Permalink
fix: empty doc for bare built bento (#5086)
Browse files Browse the repository at this point in the history
  • Loading branch information
xianml authored Nov 14, 2024
1 parent a29f799 commit 99ae64f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bentoml/_internal/bento/bento.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ def flush_info(self):
def doc(self) -> str:
if self._doc is not None:
return self._doc

if not self._fs.isfile(BENTO_README_FILENAME):
return ""
with self._fs.open(BENTO_README_FILENAME, "r") as readme_md:
self._doc = str(readme_md.read())
return self._doc
Expand Down

0 comments on commit 99ae64f

Please sign in to comment.