Do not raise error if CORE equity payment not found in rattail

This commit is contained in:
Lance Edgar 2023-09-19 07:08:35 -05:00
parent 95cd77c7fb
commit 7a18dc20ce

View file

@ -345,7 +345,11 @@ class MemberEquityPaymentImporter(FromCOREPOS, corepos_importing.model.MemberEqu
if len(matches) == 1: if len(matches) == 1:
return matches[0] return matches[0]
raise NotImplementedError(f"{len(matches)} payments matched for CORE equity: {stock_purchase}") # TODO: not sure how to handle yet, if last check found more
# than one match. presumably if none were found then it is
# safe to just return none though..
if matches:
raise NotImplementedError(f"{len(matches)} payments matched for CORE equity: {stock_purchase}")
def normalize_host_object(self, stock_purchase): def normalize_host_object(self, stock_purchase):