From 2f66412afaca4a42319c666958c89827edd8f2f3 Mon Sep 17 00:00:00 2001 From: Brennan Ashton <bashton@brennanashton.com> Date: Wed, 14 Nov 2018 17:53:22 -0800 Subject: gr-runtime: Improve exception handling in ControlPort Monitor --- gnuradio-runtime/python/pmt/pmt_to_python.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnuradio-runtime/python/pmt/pmt_to_python.py') diff --git a/gnuradio-runtime/python/pmt/pmt_to_python.py b/gnuradio-runtime/python/pmt/pmt_to_python.py index 270a1dd9e9..ddadb6a89c 100644 --- a/gnuradio-runtime/python/pmt/pmt_to_python.py +++ b/gnuradio-runtime/python/pmt/pmt_to_python.py @@ -124,7 +124,8 @@ def pmt_to_python(p): if pmt_check(p): try: return to_python(p) - except: + except (TypeError, ValueError): + # This exception will be handled by the general failure case pass raise ValueError("can't convert %s type to pmt (%s)"%(type(p),p)) -- cgit v1.2.3