i18n.rb:210:in `translate': wrong number of arguments (given 2, expected 0..1)
On schleuder 4.0.3-7+deb12u1
, a subscriber produced this error:
wrong number of arguments (given 2, expected 0..1)
/usr/share/rubygems-integration/all/gems/i18n-1.10.0/lib/i18n.rb:210:in `translate'
/usr/lib/ruby/vendor_ruby/schleuder/list.rb:361:in `rescue in block in send_to_subscriptions'
/usr/lib/ruby/vendor_ruby/schleuder/list.rb:346:in `block in send_to_subscriptions'
/usr/share/rubygems-integration/all/gems/activerecord-6.1.7.3/lib/active_record/relation/delegation.rb:88:in `each'
/usr/share/rubygems-integration/all/gems/activerecord-6.1.7.3/lib/active_record/relation/delegation.rb:88:in `each'
/usr/lib/ruby/vendor_ruby/schleuder/list.rb:345:in `send_to_subscriptions'
/usr/lib/ruby/vendor_ruby/schleuder/runner.rb:90:in `run'
/usr/lib/ruby/vendor_ruby/schleuder/cli.rb:38:in `work'
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
/usr/share/rubygems-integration/all/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
/usr/bin/schleuder:13:in `<main>'
Seems to be this line: https://0xacab.org/schleuder/schleuder/-/blob/main/lib/schleuder/list.rb#L361
I don't know ruby.
I'm being told this:
It looks like the
translate
method expects atranslation key
and anoptions hash
. Maybe remove the braces{}
?