Skip to content

Commit

Permalink
chore(config): ignore blank lines in bentoml config options (#3385)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang authored Dec 30, 2022
1 parent 9d2cca0 commit 96337f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bentoml/_internal/configuration/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def __init__(
override_config_map = {
k: yaml.safe_load(v)
for k, v in [
split_with_quotes(line, sep="=", quote='"') for line in lines
split_with_quotes(line, sep="=", quote='"')
for line in lines
if line.strip()
]
}
# Note that this values will only support latest version of configuration,
Expand Down

0 comments on commit 96337f4

Please sign in to comment.