Commit d0c14330 authored by Anze Vavpetic's avatar Anze Vavpetic
Browse files

Added comment.

parent 352bd17b
......@@ -928,6 +928,6 @@ def alter_table_finished(postdata, input_dict, output_dict):
# - add a dropdown list of legal values when editing the table!
new_table[inst_idx][att] = str(new_value)
except: # Catch orange exception and give a proper error message.
raise Exception("Illegal value '%s' for discrete attribute '%s', legal values are: %s." % (new_value, att, new_table.domain[att].values))
return {'altered_data' : new_table}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment