From c5bc9577df55d96a64d975f9671882af19a97992 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 13 Dec 2019 06:03:54 +0000 Subject: [PATCH] `s_line`, not `s` --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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