diff options
author | gebele <gebele@in-silico.ch> | 2015-09-01 13:10:31 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2015-09-01 13:10:31 +0000 |
commit | 59e929a19e71a58750a8a7e5d7256681d26b2e94 (patch) | |
tree | 633c682ec2b4983516b158b46b7685f0c271f116 | |
parent | dab74297422b9fed72f85073fc76a8cd31a1e3cd (diff) |
fixed smiles validation
-rw-r--r-- | application.rb | 4 |
1 files 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 = [] |