From 0051c8e75071943686cca124c2f0701c3bb4a557 Mon Sep 17 00:00:00 2001 From: Christopher Vollick <0@psycoti.ca> Date: Sat, 19 Mar 2022 09:14:46 -0400 Subject: [PATCH] Handle Empty Admin Menu Response Some automated processes don't care for our menu, and rather than crashing it should just consider our process to be done. --- lib/admin_command.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/admin_command.rb b/lib/admin_command.rb index 5eedb57488600b26263f3bc3067a16566405340e..f0994d46114cc779c516430e0e25d76a7db0f359 100644 --- a/lib/admin_command.rb +++ b/lib/admin_command.rb @@ -22,7 +22,9 @@ class AdminCommand def menu reply(FormTemplate.render("admin_menu")).then do |response| - handle(response.form.field("action").value) + if response.form.field("action") + handle(response.form.field("action").value) + end end end