We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee43699 commit 1d1e24dCopy full SHA for 1d1e24d
lib/tools/patching.py
@@ -444,7 +444,13 @@
444
from rich.syntax import Syntax
445
446
# console width is COLUMNS env var minus 12, or just 160 if GITHUB_ACTIONS env is not empty
447
-console_width = (int(os.environ.get("COLUMNS", 160)) - 12) if os.environ.get("GITHUB_ACTIONS", "") == "" else 160
+if os.environ.get("GITHUB_ACTIONS", "") == "":
448
+ try:
449
+ console_width = int(os.environ.get("COLUMNS", 160)) - 12
450
+ except ValueError:
451
+ console_width = 160
452
+else:
453
454
console = Console(color_system="standard", width=console_width, highlight=False)
455
456
# Use Rich to print a summary of the patches
0 commit comments