Skip to content

Commit da1370b

Browse files
authored
fix case (#1147)
1 parent e598d0f commit da1370b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

patchwork/common/client/scm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def reset_comments(self) -> None:
402402
for thread, comments in self.__iter_comments():
403403
comment_ids_to_delete = []
404404
for comment in comments:
405-
if comment.content.startswith(_COMMENT_MARKER):
405+
if comment.content is not None and comment.content.startswith(_COMMENT_MARKER):
406406
comment_ids_to_delete.append(comment.id)
407407
if len(comment_ids_to_delete) == len(comments):
408408
for comment_id in comment_ids_to_delete:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "patchwork-cli"
3-
version = "0.0.86"
3+
version = "0.0.88"
44
description = ""
55
authors = ["patched.codes"]
66
license = "AGPL"

0 commit comments

Comments
 (0)