Skip to content

Commit 565ca7d

Browse files
committed
Make sure logdir is always set
1 parent 283d769 commit 565ca7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Platforms/WASI/_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def call(command, *, context=None, quiet=False, **kwargs):
142142
stdout = None
143143
stderr = None
144144
else:
145-
if context.logdir is None:
145+
if (logdir := getattr(context, "logdir", None)) is None:
146146
logdir = pathlib.Path(tempfile.gettempdir())
147147
stdout = tempfile.NamedTemporaryFile(
148148
"w",

0 commit comments

Comments
 (0)