Skip to content

Commit 7171255

Browse files
Update homu/main.py
Co-Authored-By: pietroalbini <pietro@pietroalbini.org>
1 parent df1acad commit 7171255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

homu/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def get_issue(self):
179179
return issue
180180

181181
def add_comment(self, comment):
182-
if issubclass(comment.__class__, comments.Comment):
182+
if isinstance(comment, comments.Comment):
183183
comment = "%s\n<!-- homu: %s -->" % (
184184
comment.render(), comment.jsonify(),
185185
)

0 commit comments

Comments
 (0)