about summary refs log tree commit diff
path: root/bin/tootctl
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-05-15 18:41:27 +0200
committerGitHub <noreply@github.com>2020-05-15 18:41:27 +0200
commit199bbbcb9fe0620000538ae0c7766ff4a8f4cf0c (patch)
tree25a8719987794932367e896e9ce5813cd49eb44f /bin/tootctl
parent2b91a3dac0a71108042481d27f549c2261e5de41 (diff)
Fix `tootctl media remove-orphans` choking on unknown files in storage (#13765)
Fix #13762

Catch tootctl interrupt to prevent confusing stacktrace
Diffstat (limited to 'bin/tootctl')
-rwxr-xr-xbin/tootctl8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/tootctl b/bin/tootctl
index f26e1c7ed..a9ebb22c6 100755
--- a/bin/tootctl
+++ b/bin/tootctl
@@ -1,5 +1,11 @@
 #!/usr/bin/env ruby
 APP_PATH = File.expand_path('../config/application', __dir__)
+
 require_relative '../config/boot'
 require_relative '../lib/cli'
-Mastodon::CLI.start(ARGV)
+
+begin
+  Mastodon::CLI.start(ARGV)
+rescue Interrupt
+  exit(130)
+end