summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--application.rb4
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 = []