Skip to content

Commit 9bdea04

Browse files
author
wegamekinglc
committed
added a fall back logic to raise value error when no type is match
1 parent a37cc7b commit 9bdea04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PyFin/Math/Accumulators/IAccumulators.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ cpdef build_holder(name):
476476
return Identity(float(name))
477477
elif hasattr(name, '__iter__'):
478478
return build_holder(name[0])
479+
else:
480+
raise ValueError("({0}) is not recognized as a valid accumuator type".format(type(name)))
479481

480482

481483
cdef class CompoundedValueHolder(Accumulator):

0 commit comments

Comments
 (0)