Skip to content

Commit

Permalink
[SCons] Fix message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Mar 23, 2022
1 parent 3f25aca commit 10ba578
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,6 @@ if env['python_package'] != 'none':
f"Could not execute the Python interpreter '{env['python_cmd']!r}'")
sys.exit(1)
elif python_version < python_min_version:
msg = ""
if env["python_package"] in ("minimal", "full", "default"):
logger.error(
f"Python version is incompatible. Found {python_version} but "
Expand All @@ -1560,9 +1559,9 @@ if env['python_package'] != 'none':
else:

if len(info) > expected_output_lines:
msg = "\n| ".join(info[expected_output_lines:])
logger.warning(
f"Unexpected output while checking Python dependency versions:{msg}")
msg = ["Unexpected output while checking Python dependency versions:"]
msg.extend(info[expected_output_lines:])
logger.warning("\n| ".join(msg))

warn_no_full_package = False
if python_version >= parse_version("3.8"):
Expand Down

0 comments on commit 10ba578

Please sign in to comment.