From 59e929a19e71a58750a8a7e5d7256681d26b2e94 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 1 Sep 2015 13:10:31 +0000 Subject: fixed smiles validation --- application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application.rb b/application.rb index 9b105a4..acf3c73 100644 --- a/application.rb +++ b/application.rb @@ -200,10 +200,10 @@ post '/predict/?' do @identifier = params[:identifier] begin # get compound from SMILES - @compound = Compound.from_smiles @identifier#.to_s + @compound = Compound.from_smiles @identifier rescue @error_report = "Attention, '#{params[:identifier]}' is not a valid SMILES string." - haml :error + return haml :error end @models = [] @predictions = [] -- cgit v1.2.3