fix wrong exception type

This commit is contained in:
Johannes Schönberger
2012-07-10 19:37:33 +02:00
parent 2a75b78838
commit ec5c339c68
+2 -2
View File
@@ -320,8 +320,8 @@ def estimate_transformation(ttype, src, dst, order=None):
"""
ttype = ttype.lower()
if ttype not in ESTIMATED_TRANSFORMATIONS:
raise NotImplemented('the transformation type \'%s\' is not'
'implemented' % ttype)
raise ValueError('the transformation type \'%s\' is not'
'implemented' % ttype)
args = [src, dst]
if order is not None and ttype == 'polynomial':
args.append(order)