From cf0cf956129e000ba78835ce7f2c683d6209b5fb Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@stud.unibas.ch> Date: Mon, 22 Apr 2013 13:47:18 +0200 Subject: [PATCH] changed from RuntimeError to ValueError --- modules/base/pymod/table_selector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/pymod/table_selector.py b/modules/base/pymod/table_selector.py index 9cf2df6c9..355117761 100644 --- a/modules/base/pymod/table_selector.py +++ b/modules/base/pymod/table_selector.py @@ -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: -- GitLab