Skip to content

Commit c8819f9

Browse files
committed
fix(exec_properties): Apply safer default
Fixes #605.
1 parent dc2ed38 commit c8819f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ py_image_layer = _py_image_layer
6363
resolutions = _resolutions
6464

6565
def _py_binary_or_test(name, rule, srcs, main, data = [], deps = [], resolutions = {}, **kwargs):
66-
exec_properties = kwargs.pop("exec_properties", {})
66+
exec_properties = kwargs.pop("exec_properties") or {}
6767
non_test_exec_properties = {k: v for k, v in exec_properties.items() if not k.startswith("test.")}
6868

6969
# Compatibility with rules_python, see docs in py_executable.bzl

0 commit comments

Comments
 (0)