Running black formatter on source files
This commit is contained in:
parent
cd3354e146
commit
f888d080d6
2 changed files with 14 additions and 12 deletions
|
@ -56,12 +56,14 @@ def execute(
|
|||
try:
|
||||
out, _ = proc.communicate(timeout=timeout)
|
||||
except subprocess.TimeoutExpired as e:
|
||||
logging.warning(f'''
|
||||
logging.warning(
|
||||
f"""
|
||||
Communication with process pid={proc.pid} hangs for more
|
||||
than {timeout} seconds.
|
||||
If this is not expected, the process is stale, or
|
||||
you might have run in stdout / stderr deadlock.
|
||||
''')
|
||||
"""
|
||||
)
|
||||
out, _ = proc.communicate()
|
||||
if proc.returncode != 0:
|
||||
err = "{} exited with code {}".format(cmd, proc.returncode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue