Skip to content

Commit 6e051a7

Browse files
log file empty means no issues
1 parent 25e6e75 commit 6e051a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

devops/gha.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def parse_github_args() -> Tuple[str, str, str]:
1818
def count_log_issues(fpath: str) -> int:
1919
with open(fpath) as fhandle:
2020
lines = fhandle.readlines()
21+
if len(lines) < 2:
22+
return 0
2123
lines.reverse()
2224
for line in lines:
2325
if line.startswith('Found '):

0 commit comments

Comments
 (0)