summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/python/pmt/pmt_to_python.py
diff options
context:
space:
mode:
authorJosh Morman <mormjb@gmail.com>2020-04-23 07:12:36 -0400
committerJosh Morman <mormjb@gmail.com>2020-06-04 10:05:47 -0400
commit088d2c4fec5b2726ee3085cd84bf9502a25927a3 (patch)
tree873fef7b5e655e267b3fdbe652a8901ea40adc89 /gnuradio-runtime/python/pmt/pmt_to_python.py
parent9d3c5a133c49a8bba778568fb30c1f3afe577f4c (diff)
pmt: add pybind11 bindings
Diffstat (limited to 'gnuradio-runtime/python/pmt/pmt_to_python.py')
-rw-r--r--gnuradio-runtime/python/pmt/pmt_to_python.py4
1 files changed, 2 insertions, 2 deletions
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))