diff options
author | Jeong Arm <kjwonmail@gmail.com> | 2018-10-21 23:42:22 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-21 16:42:22 +0200 |
commit | 68f0e4d54e452fd71fee1f1eeeb09a6cc0f56a67 (patch) | |
tree | 7808d1d0c871c35b7b8e52963ca390a15baf1621 | |
parent | 8d70d3de3842cd079484b8e683516ff291de7e24 (diff) |
Handle if username is not found on tootctl feeds build (#9040)
-rw-r--r-- | lib/mastodon/feeds_cli.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |