diff --git a/reddit/askreddit.py b/reddit/askreddit.py index 7c7110a..36c2516 100644 --- a/reddit/askreddit.py +++ b/reddit/askreddit.py @@ -32,14 +32,15 @@ def get_askreddit_threads(): content["comments"] = [] for top_level_comment in submission.comments: - content["comments"].append( + if not top_level_comment.stickied: + content["comments"].append( { "comment_body": top_level_comment.body, "comment_url": top_level_comment.permalink, "comment_id": top_level_comment.id, } - ) - + ) + except AttributeError as e: pass print_substep("Received AskReddit threads Successfully.", style="bold green")