Skip to content

Commit

Permalink
fix: retry env to be None type
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
  • Loading branch information
aarnphm committed Oct 31, 2022
1 parent 92461d7 commit 882645d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bentoml/_internal/runner/runner_handle/remote.py
Expand Up @@ -171,7 +171,7 @@ async def async_run_method(
) as resp:
body = await resp.read()
except aiohttp.ClientOSError as e:
if os.getenv("BENTOML_RETRY_RUNNER_REQUESTS").lower() == "true":
if os.getenv("BENTOML_RETRY_RUNNER_REQUESTS", "").lower() == "true":
try:
# most likely the TCP connection has been closed; retry after reconnecting
await self._reset_client()
Expand Down

0 comments on commit 882645d

Please sign in to comment.