summaryrefslogtreecommitdiff
path: root/gr-audio/examples/python/test_resampler.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-audio/examples/python/test_resampler.py')
-rwxr-xr-xgr-audio/examples/python/test_resampler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gr-audio/examples/python/test_resampler.py b/gr-audio/examples/python/test_resampler.py
index 9775754e39..93be86086b 100755
--- a/gr-audio/examples/python/test_resampler.py
+++ b/gr-audio/examples/python/test_resampler.py
@@ -22,10 +22,14 @@
from gnuradio import gr, gru, blks2
from gnuradio import audio
-from gnuradio import analog
from gnuradio.eng_option import eng_option
from optparse import OptionParser
+try:
+ from gnuradio import analog
+except ImportError:
+ sys.stderr.write("Error: Program requires gr-analog.\n")
+ sys.exit(1)
class my_top_block(gr.top_block):