Skip to content
Snippets Groups Projects
Commit cf0cf956 authored by Gabriel Studer's avatar Gabriel Studer
Browse files

changed from RuntimeError to ValueError

parent 726f8e36
No related branches found
No related tags found
No related merge requests found
......@@ -240,9 +240,9 @@ class TableSelector:
unique_type=list(set(column_types))
if len(unique_type)>1:
raise RuntimeError('Try to compare columns '+','.join(column_names)+' which have inconsistent types!')
raise ValueError('Try to compare columns '+','.join(column_names)+' which have inconsistent types!')
if len(unique_type)==0:
raise RuntimeError('Try to evaluate subexpression '+' '.join(subexpression)+' that contains no valid column name of current table!')
raise ValueError('Try to evaluate subexpression '+' '.join(subexpression)+' that contains no valid column name of current table!')
for item in subexpression:
if item in self.valid_operators:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment