Skip invalid options

This commit is contained in:
Bernie Chiu 2013-09-25 14:46:55 +08:00
parent 0d1426cab8
commit 0f18cdfe8e
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class Panel::Ask::BackEnd::AskRepliesController < OrbitBackendController
end
params[:school][:depts].each do |dns|
next if dns.empty?
begin
send_request(dns, @ask_question, @ask_reply)
rescue URI::InvalidURIError