Skip to content
Snippets Groups Projects
Commit 68f0e4d5 authored by Jeong Arm's avatar Jeong Arm Committed by Eugen Rochko
Browse files

Handle if username is not found on tootctl feeds build (#9040)

parent 8d70d3de
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment