Handle Empty Admin Menu Response

Christopher Vollick created

Some automated processes don't care for our menu, and rather than
crashing it should just consider our process to be done.

Change summary

lib/admin_command.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

Detailed changes

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