summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrennan Ashton <bashton@brennanashton.com>2018-11-14 18:11:37 -0800
committerMartin Braun <martin.braun@ettus.com>2018-11-15 15:44:05 -0800
commit46e7260f8984c27ea752bb83715c770a69a4b606 (patch)
tree99905cea6311e6df374213d800271dc5ec22c081
parent1a56876a4757a56500fb6c9b66e7c145ed0976d1 (diff)
gr-uhd: Explicitly handle runtime issues with set_[frequency, bandwidth]
This is most likely an issue with the api not being implemented. Error logging might want to be added in here at some point, so users know that the bandwidth and frequency is not being set as expected.
-rw-r--r--gr-qtgui/apps/uhd_display.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/apps/uhd_display.py b/gr-qtgui/apps/uhd_display.py
index 58494f3af3..bb9abfc1b2 100644
--- a/gr-qtgui/apps/uhd_display.py
+++ b/gr-qtgui/apps/uhd_display.py
@@ -253,7 +253,7 @@ class my_top_block(gr.top_block):
try:
self.snk.set_frequency_range(self._freq, self._bandwidth)
- except:
+ except RuntimeError:
pass
def set_bandwidth(self, bw):
@@ -262,7 +262,7 @@ class my_top_block(gr.top_block):
try:
self.snk.set_frequency_range(self._freq, self._bandwidth)
- except:
+ except RuntimeError:
pass
def set_amplifier_gain(self, amp):