fix: don't assume that any configurations are active

This commit is contained in:
Paul McCarthy
2022-04-19 15:52:06 +01:00
parent bb2d5bdab6
commit be9a635f9b
2 changed files with 21 additions and 19 deletions
+1
View File
@@ -276,6 +276,7 @@ def build(options: Options, tmp_path: Path) -> None:
) )
try: try:
if len(python_configurations) > 0:
before_all_options_identifier = python_configurations[0].identifier before_all_options_identifier = python_configurations[0].identifier
before_all_options = options.build_options(before_all_options_identifier) before_all_options = options.build_options(before_all_options_identifier)
+1
View File
@@ -235,6 +235,7 @@ def build(options: Options, tmp_path: Path) -> None:
) )
try: try:
if len(python_configurations) > 0:
before_all_options_identifier = python_configurations[0].identifier before_all_options_identifier = python_configurations[0].identifier
before_all_options = options.build_options(before_all_options_identifier) before_all_options = options.build_options(before_all_options_identifier)