summaryrefslogtreecommitdiff
path: root/gr-dtv
diff options
context:
space:
mode:
authorBrennan Ashton <bashton@brennanashton.com>2018-11-14 17:52:20 -0800
committerMartin Braun <martin.braun@ettus.com>2018-11-15 15:44:05 -0800
commit39b74849d939456a0d1e4aa534e9f829e742ba63 (patch)
tree5b712759dd0cd2d40e83490ebb62838f42af2852 /gr-dtv
parent0b57505367565224fa2967095d134005248d6a84 (diff)
gr-runtime: Properly handle optional support for thrift RPC Transport
Diffstat (limited to 'gr-dtv')
-rw-r--r--gr-dtv/examples/atsc_ctrlport_monitor.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gr-dtv/examples/atsc_ctrlport_monitor.py b/gr-dtv/examples/atsc_ctrlport_monitor.py
index 9f233d9ff5..ad7cf03718 100644
--- a/gr-dtv/examples/atsc_ctrlport_monitor.py
+++ b/gr-dtv/examples/atsc_ctrlport_monitor.py
@@ -27,7 +27,9 @@ import matplotlib
matplotlib.use("QT4Agg")
import matplotlib.pyplot as plt
import matplotlib.animation as animation
-from gnuradio.ctrlport.GNURadioControlPortClient import GNURadioControlPortClient
+from gnuradio.ctrlport.GNURadioControlPortClient import (
+ GNURadioControlPortClient, TTransportException,
+)
import numpy
from numpy.fft import fftpack
@@ -106,7 +108,7 @@ class atsc_ctrlport_monitor(object):
self._viterbi_metric.pop()
self._viterbi_metric.insert(0, vt_decoder_metrics)
- except:
+ except TTransportException:
sys.stderr.write("Lost connection, exiting")
sys.exit(1)