viff

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 diff
     1.1 --- a/viff/orlandi.py	Thu May 20 10:50:25 2010 +0200
     1.2 +++ b/viff/orlandi.py	Thu May 20 10:51:25 2010 +0200
     1.3 @@ -1064,7 +1064,7 @@
     1.4  
     1.5          def check(v, a, b, c, ec):
     1.6              if v.value != 0:
     1.7 -                return None
     1.8 +                raise OrlandiException("TripleTest failed - The two triples were inconsistent.")
     1.9              return (a, b, c, ec)
    1.10  
    1.11          def compute_value(((a, b, c, ec), (x, y, z, _), r)):