summaryrefslogtreecommitdiff
path: root/gr-dtv/examples/atsc_ctrlport_monitor.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-dtv/examples/atsc_ctrlport_monitor.py')
-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)