Skip to content

Commit 420c39c

Browse files
ovidiusmbrminich
andauthored
Fix log message when env var not defined (#914)
Signed-off-by: Ovidiu Mara <[email protected]> Co-authored-by: Mikhail Brinskiy <[email protected]>
1 parent f62d1d7 commit 420c39c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/python/nixl_api_example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
buf_size = 256
3333
# Allocate memory and register with NIXL
3434

35-
logger.info("Using NIXL Plugins from:\n%s", os.environ["NIXL_PLUGIN_DIR"])
35+
logger.info(
36+
"Using NIXL Plugins from:\n%s",
37+
os.environ.get("NIXL_PLUGIN_DIR", "default location"),
38+
)
3639

3740
# Example using nixl_agent_config
3841
agent_config = nixl_agent_config(backends=["UCX"])

0 commit comments

Comments
 (0)