Skip to content

Commit 299d6cb

Browse files
dk19ylaurenyu
andauthored
Update src/sagemaker_pytorch_serving_container/torchserve.py
Co-authored-by: Lauren Yu <[email protected]>
1 parent 270489b commit 299d6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker_pytorch_serving_container/torchserve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def start_torchserve(handler_service=DEFAULT_HANDLER_SERVICE):
7070
"""
7171

7272
if ENABLE_MULTI_MODEL:
73-
if not os.getenv("SAGEMAKER_HANDLER"):
73+
if "SAGEMAKER_HANDLER" not in os.environ:
7474
os.environ["SAGEMAKER_HANDLER"] = handler_service
7575
_set_python_path()
7676
else:

0 commit comments

Comments
 (0)