diff --git a/api/lightning/node.py b/api/lightning/node.py index 54658f4a..9ed84b70 100644 --- a/api/lightning/node.py +++ b/api/lightning/node.py @@ -521,11 +521,11 @@ class LNNode: ) order.save() print( - f"Order: {order.id} FAILED. Hash: {hash} Reason: {LNNode.payment_failure_context[response.failure_reason]}" + f"Order: {order.id} FAILED. Hash: {hash} Reason: {cls.payment_failure_context[response.failure_reason]}" ) return { "succeded": False, - "context": f"payment failure reason: {LNNode.payment_failure_context[response.failure_reason]}", + "context": f"payment failure reason: {cls.payment_failure_context[response.failure_reason]}", } if response.status == 2: # Status 2 'SUCCEEDED'