-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
'tootctl media remove' error after PR 9229 #9237
Copy link
Copy link
Closed
Description
~/live$ RAILS_ENV=production bundle exec bin/tootctl media remove --days=3 --no-background
.bundler: failed to load command: bin/tootctl (bin/tootctl)
TypeError: nil can't be coerced into Integer
/home/mastodon/live/lib/mastodon/media_cli.rb:56:in `+'
/home/mastodon/live/lib/mastodon/media_cli.rb:56:in `block (2 levels) in remove'
/home/mastodon/live/lib/mastodon/media_cli.rb:52:in `each'
/home/mastodon/live/lib/mastodon/media_cli.rb:52:in `block in remove'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:136:in `block in find_in_batches'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:238:in `block in in_batches'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:222:in `loop'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:222:in `in_batches'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/batches.rb:135:in `find_in_batches'
/home/mastodon/live/lib/mastodon/media_cli.rb:51:in `remove'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:115:in `invoke'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:238:in `block in subcommand'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
/home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
bin/tootctl:5:in `<top (required)>'
This happens when testing from master at f055907. This includes the changes from #9229 which I'm assuming causes this error. I ran the same command earlier today from 2.6.1 and it worked fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels