Running black formatter on source files

This commit is contained in:
Andrei Lando 2023-09-12 17:58:25 +04:00
parent cd3354e146
commit f888d080d6
2 changed files with 14 additions and 12 deletions

View file

@ -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)