1
0
mirror of https://github.com/hughrun/ephemetoot synced 2025-02-19 21:20:34 +01:00

suppress IndexError message for q=2 or more

- adds username to "No toots found" message
- only prints if quiet <= 1
This commit is contained in:
Hugh Rundle 2020-09-12 15:06:48 +10:00
parent fbbea05fab
commit a3f5bd4c53

View File

@ -585,7 +585,14 @@ def check_batch(config, options, mastodon, user_id, timeline, deleted_count=0):
print("---------------------------------------\n")
except IndexError:
print("No toots found!\n")
if not options.quiet or options.quiet <= 1:
print(
"No toots found for "
+ config["username"]
+ "@"
+ config["base_url"]
+ ".\n"
)
def check_toots(config, options, retry_count=0):