Skip to content

Commit 07b1899

Browse files
committed
debuginfo-test: Fix #45086.
LLDB's output may be None instead of '', and that will cause type mismatch when normalize_whitespace() expects a string instead of None. This commit simply ensures we do pass '' even if the output is None.
1 parent bb4d149 commit 07b1899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/lldb_batchmode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def execute_command(command_interpreter, command):
8181

8282
if res.Succeeded():
8383
if res.HasResult():
84-
print(normalize_whitespace(res.GetOutput()), end='\n')
84+
print(normalize_whitespace(res.GetOutput() or ''), end='\n')
8585

8686
# If the command introduced any breakpoints, make sure to register
8787
# them with the breakpoint

0 commit comments

Comments
 (0)