@SimGuruModSquad,
Hi! Just to let you know, if it's not already known, in the billing code there is an error that will cause an LE. It's in the service_npc_manager module in ServiceNpcService._run_bill_collection. The problem is the code below:
if total_cost > 0:
(paid_amount, billed_amount) = service_npc_type.try_charge_for_service(household, total_cost)
if billed_amount > 0:
This can cause problems if total_cost <= 0 because "billed_amount" never gets initialized, so the if condition checking it if "billed_amount > 0" throws an LE,
"UnboundLocalError: local variable 'billed_amount' referenced before assignment".
Hope everyone there has a great Thanksgiving!
Comments