Skip to content

Commit d1b03cd

Browse files
elif write dataframe
Co-authored-by: Copilot <[email protected]>
1 parent d88ec34 commit d1b03cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytype_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def to_markdown(me, fp, returncode, results, branch_url):
145145
fp.write(f"\n#### {mylink} reports these error messages:\n")
146146
if not len(results):
147147
fp.write(f"\n*pytype exited with error {returncode}, please check the CI logs*\n")
148-
fp.write(pd.DataFrame(results).to_markdown())
148+
elif len(results):
149+
fp.write(pd.DataFrame(results).to_markdown())
149150
else:
150151
fp.write(f"\n#### Congratulations, {mylink} reports no {pytype_link} errors.\n")
151152
fp.write("\n")

0 commit comments

Comments
 (0)