From c12c53d7195f55cf7fd47257315ebd6c9d4b4c44 Mon Sep 17 00:00:00 2001 From: Dan Schwarz Date: Sun, 19 Mar 2023 21:10:12 -0400 Subject: [PATCH] minor improvement of feedback messages --- toot/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toot/commands.py b/toot/commands.py index 7120f2f..7ea29d9 100644 --- a/toot/commands.py +++ b/toot/commands.py @@ -443,7 +443,7 @@ def list_create(app, user, args): def list_delete(app, user, args): id = args.id if args.id else api.find_list_id(app, user, args.title) api.delete_list(app, user, id) - print_out(f"✓ List \"{args.title}\" deleted.") + print_out(f"✓ List \"{args.title if args.title else args.id}\" deleted.") def list_add_account(app, user, args): @@ -457,7 +457,7 @@ def list_add_account(app, user, args): return try: api.add_accounts_to_list(app, user, list_id, [account['id']]) - print_out(f"✓ Added account \"{account['acct']}\"") + print_out(f"✓ Added account \"{args.account}\"") except Exception as ex: print_out(f"{ex}")