Do not display empty worker info

This commit is contained in:
GergelyKalmar 2021-11-30 18:59:46 +01:00
parent e2ee3144ed
commit 1bcc2f87a2
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ class BaseReport:
def toterminal(self, out: TerminalWriter) -> None:
if hasattr(self, "node"):
out.line(getworkerinfoline(self.node))
worker_info = getworkerinfoline(self.node)
if worker_info:
out.line(worker_info)
longrepr = self.longrepr
if longrepr is None: