diff options
author | Brennan Ashton <bashton@brennanashton.com> | 2018-11-14 17:52:20 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2018-11-15 15:44:05 -0800 |
commit | 39b74849d939456a0d1e4aa534e9f829e742ba63 (patch) | |
tree | 5b712759dd0cd2d40e83490ebb62838f42af2852 /gr-dtv | |
parent | 0b57505367565224fa2967095d134005248d6a84 (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.py | 6 |
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) |