From: Jeong Arm Date: Sun, 21 Oct 2018 14:42:22 +0000 (+0900) Subject: Handle if username is not found on tootctl feeds build (#9040) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=68f0e4d54e452fd71fee1f1eeeb09a6cc0f56a67;p=mastodon.git Handle if username is not found on tootctl feeds build (#9040) --- diff --git a/lib/mastodon/feeds_cli.rb b/lib/mastodon/feeds_cli.rb index c3fca723e..cca65cf87 100644 --- a/lib/mastodon/feeds_cli.rb +++ b/lib/mastodon/feeds_cli.rb @@ -54,6 +54,11 @@ module Mastodon elsif username.present? account = Account.find_local(username) + if account.nil? + say("Account #{username} is not found", :red) + exit(1) + end + if options[:background] RegenerationWorker.perform_async(account.id) unless options[:dry_run] else