From 088d2c4fec5b2726ee3085cd84bf9502a25927a3 Mon Sep 17 00:00:00 2001 From: Josh Morman <mormjb@gmail.com> Date: Thu, 23 Apr 2020 07:12:36 -0400 Subject: pmt: add pybind11 bindings --- gnuradio-runtime/python/pmt/pmt_to_python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 1c547ba521..425d68b6d1 100644 --- a/gnuradio-runtime/python/pmt/pmt_to_python.py +++ b/gnuradio-runtime/python/pmt/pmt_to_python.py @@ -7,7 +7,7 @@ from __future__ import unicode_literals -from . import pmt_swig as pmt +from . import pmt_python as pmt import numpy # SWIG isn't taking in the #define PMT_NIL; @@ -112,7 +112,7 @@ def pmt_to_python(p): if pmt_check(p): try: return to_python(p) - except (TypeError, ValueError): + except (RuntimeError, TypeError, ValueError): # TODO: make pybind11 handle wrong_type, convert to type error # 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