Merge pull request #74 from Akiqqqqqqq/bugfix-null-key

fix null key
This commit is contained in:
relakkes 2023-11-18 15:05:16 +08:00 committed by GitHub
commit ecf9a5e893
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,6 @@ class XHSClient:
comments_res = await self.get_note_comments(note_id, comments_cursor)
comments_has_more = comments_res.get("has_more", False)
comments_cursor = comments_res.get("cursor", "")
# thanks, @Akiqqqqqqq fix it issue
# Check if 'comments' key exists in the response
if "comments" not in comments_res:
# Handle the absence of 'comments' key appropriately