[CORD-1840] Fixing grpc connection
Change-Id: Idb42e5bc23c81de2d8cdcae7aca7e51350f00a89
diff --git a/src/tosca/generator.py b/src/tosca/generator.py
index 1d12a50..065170c 100644
--- a/src/tosca/generator.py
+++ b/src/tosca/generator.py
@@ -35,9 +35,10 @@
def generate(self, client):
print "[XOS-TOSCA] Generating TOSCA"
self._clean()
- xproto = client.utility.GetXproto(Empty())
+
try:
+ xproto = client.utility.GetXproto(Empty())
args = Args()
args.output = TOSCA_DEFS_DIR
args.inputs = str(xproto.xproto)