From 976655d1728d738c36cde8c814a270def3e7fd23 Mon Sep 17 00:00:00 2001 From: Justus Kandzi Date: Thu, 28 Dec 2017 15:04:01 +0100 Subject: [PATCH] docs: fix python example code issues --- docs/grpc/python.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/grpc/python.md b/docs/grpc/python.md index cd33bed64..d34f160a9 100644 --- a/docs/grpc/python.md +++ b/docs/grpc/python.md @@ -51,6 +51,7 @@ and set up a channel and stub to your connect to your `lnd` node: import rpc_pb2 as ln import rpc_pb2_grpc as lnrpc import grpc +import os # Lnd cert is at ~/.lnd/tls.cert on Linux and # ~/Library/Application Support/Lnd/tls.cert on Mac @@ -78,7 +79,7 @@ print response.total_balance ```python request = ln.InvoiceSubscription() -for invoice in stub.SubscribeInvoices(request); +for invoice in stub.SubscribeInvoices(request): print invoice ```