summaryrefslogtreecommitdiff
path: root/rpc
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 20:21:10 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 20:21:10 +0200
commit413dece08acb8d168835b0642bf1bccf85506c95 (patch)
treef475479a36e12b22a3f1364769b314605579f3da /rpc
parent8409d07fadbaa15d7dc3660cc34e5c152e961651 (diff)
statuses
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpc/rpc.py b/rpc/rpc.py
index 464de62..26a7ed4 100644
--- a/rpc/rpc.py
+++ b/rpc/rpc.py
@@ -102,7 +102,11 @@ class CortexRPC(object):
def send_frame(self, fn, meta, frame):
if self.relay is not None:
# print('Send frame ' + fn)
- self.relay.send_frame(fn, meta, frame)
+ try:
+ self.relay.send_frame(fn, meta, frame)
+ except Exception as e:
+ print('Caught exception...? Wha')
+ return self.connected()
else:
print('Can\'t send frame, relay not ready...')