Skip to content

Commit

Permalink
fix: wheel directory check for notebook workflow (#3532)
Browse files Browse the repository at this point in the history
Coerce types to check if wheels exist, then create the directory.

Fixes #3528
  • Loading branch information
jiewpeng committed Feb 7, 2023
1 parent 8ad5003 commit a2cc28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/bento/build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def write_to_bento(self, bento_fs: FS, build_ctx: str) -> None:
build_bentoml_editable_wheel(bento_fs.getsyspath(wheels_folder))

# Move over required wheel files
if self.wheels is not None:
if self.wheels:
bento_fs.makedirs(wheels_folder, recreate=True)
for whl_file in self.wheels: # pylint: disable=not-an-iterable
whl_file = resolve_user_filepath(whl_file, build_ctx)
Expand Down

0 comments on commit a2cc28a

Please sign in to comment.