spa2rql.py
branchstable
changeset 5621 6f32f08d91f3
parent 5613 bc0ebfbf5c5d
child 10662 10942ed172de
--- a/spa2rql.py	Tue Jun 01 14:26:50 2010 +0200
+++ b/spa2rql.py	Tue Jun 01 15:19:06 2010 +0200
@@ -75,7 +75,7 @@
             nbctypes = len(ctypes)
             ctypes &= varpossibletypes
             if not ctypes:
-                raise TypeResolverException()
+                raise TypeResolverException('No possible type')
             return len(ctypes) != nbctypes
         except KeyError:
             self.possible_types[var] = varpossibletypes
@@ -114,7 +114,7 @@
                                               if o == '*' or o in self.possible_types[objvar]]
                 # ensure this still make sense
                 if not yams_predicates:
-                    raise TypeResolverException()
+                    raise TypeResolverException('No yams predicate')
                 if len(yams_predicates) != nbchoices:
                     modified = True