Print if no tags are followed

This commit is contained in:
Ivan Habunek 2022-12-31 09:14:28 +01:00
parent 6f9ef69277
commit 7be74f9240
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 5 additions and 2 deletions

View File

@ -199,8 +199,11 @@ def print_acct_list(accounts):
def print_tag_list(tags):
for tag in tags:
print_out(f"* <green>#{tag['name']}\t</green> {tag['url']}")
if tags:
for tag in tags:
print_out(f"* <green>#{tag['name']}\t</green> {tag['url']}")
else:
print_out("You're not following any hashtags.")
def print_search_results(results):