changeset 1441:2ec27c8979b6

Raise an exception if TripleTest fails.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Thu, 20 May 2010 10:51:25 +0200
parents 91222852a0a4
children be4d2a98411d
files viff/orlandi.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/viff/orlandi.py	Thu May 20 10:50:25 2010 +0200
+++ b/viff/orlandi.py	Thu May 20 10:51:25 2010 +0200
@@ -1064,7 +1064,7 @@
 
         def check(v, a, b, c, ec):
             if v.value != 0:
-                return None
+                raise OrlandiException("TripleTest failed - The two triples were inconsistent.")
             return (a, b, c, ec)
 
         def compute_value(((a, b, c, ec), (x, y, z, _), r)):