diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 3bf56cf6..20a3fb74 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -247,7 +247,7 @@ class GitHub(object): return outputs def _comment(self, s): - s = s.split("\n")[0].strip() + s_line = s.split("\n")[0].strip() left, right = s_line[:COMMENT_MAX], s_line[COMMENT_MAX:] if not right: return left