diff --git a/reddit/subreddit.py b/reddit/subreddit.py index f80889c..626fdad 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -157,11 +157,10 @@ def get_subreddit_threads(subreddit_, thread_link_, number_of_comments): "comment_id": top_level_comment.id, } ) - count += 1 except AttributeError: pass - print_substep("AskReddit threads retrieved successfully.", style_="bold green") + print_substep("AskReddit threads retrieved successfully.", style="bold green") content["thread_url"] = f"https://reddit.com{submission.permalink}" content["thread_title"] = submission.title diff --git a/utils/console.py b/utils/console.py index 5e24982..a0b9117 100644 --- a/utils/console.py +++ b/utils/console.py @@ -24,11 +24,9 @@ def print_step(text): console.print(panel) -def print_substep(text, style_=None): +def print_substep(text, style=None): """Prints a rich info message without the panelling.""" - if style_ is not None: - console.print(text, style=style_) - console.print(text) + console.print(text, style) def print_table(items): """Prints items in a table."""