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 14a8a10 commit ec3dd02Copy full SHA for ec3dd02
opengrok-tools/src/main/python/opengrok_tools/utils/command.py
@@ -177,7 +177,12 @@ def run(self):
177
self.out.append(line)
178
179
if self.doprint:
180
- print(line.rstrip())
+ # Even if print() fails the thread has to keep
181
+ # running to avoid hangups of the executed command.
182
+ try:
183
+ print(line.rstrip())
184
+ except Exception as print_exc:
185
+ self.logger.error(print_exc)
186
187
def getoutput(self):
188
return self.out
0 commit comments