From 7be74f924053ff9ecda3723267dd6b3ee8c51ee8 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 31 Dec 2022 09:14:28 +0100 Subject: [PATCH] Print if no tags are followed --- toot/output.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/toot/output.py b/toot/output.py index bacda1a..b037492 100644 --- a/toot/output.py +++ b/toot/output.py @@ -199,8 +199,11 @@ def print_acct_list(accounts): def print_tag_list(tags): - for tag in tags: - print_out(f"* #{tag['name']}\t {tag['url']}") + if tags: + for tag in tags: + print_out(f"* #{tag['name']}\t {tag['url']}") + else: + print_out("You're not following any hashtags.") def print_search_results(results):