Skip to content

Commit 3fdc591

Browse files
committed
Update run_cpp_linter.py
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent e81367b commit 3fdc591

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/scripts/run_cpp_linter.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
comment = '''There are some changes that do not conform to C++ style guidelines:\n ```diff\n{}```'''.format(output.stdout.decode("utf-8"))
2525
approval = 'REQUEST_CHANGES'
2626

27-
pr.create_review(commit, comment, approval)
28-
27+
try:
28+
pr.create_review(commit, comment, approval)
29+
except:
30+
print("Unable to submit in depth review, please review logs for linting issues")
31+
2932
if output.returncode != 0:
3033
exit(1)
3134
else:
32-
exit(0)
35+
exit(0)

0 commit comments

Comments
 (0)