Fix `tootctl media remove-orphans` choking on unknown files in storage (#13765)
Fix #13762 Catch tootctl interrupt to prevent confusing stacktracemain
parent
2b91a3dac0
commit
199bbbcb9f
@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
APP_PATH = File.expand_path('../config/application', __dir__)
|
APP_PATH = File.expand_path('../config/application', __dir__)
|
||||||
|
|
||||||
require_relative '../config/boot'
|
require_relative '../config/boot'
|
||||||
require_relative '../lib/cli'
|
require_relative '../lib/cli'
|
||||||
Mastodon::CLI.start(ARGV)
|
|
||||||
|
begin
|
||||||
|
Mastodon::CLI.start(ARGV)
|
||||||
|
rescue Interrupt
|
||||||
|
exit(130)
|
||||||
|
end
|
||||||
|
Loading…
Reference in new issue