summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib
diff options
context:
space:
mode:
authorMichael Byers <ByersJR.Michael@gmail.com>2020-01-07 14:57:39 -0500
committerMarcus Müller <marcus@hostalia.de>2020-02-09 19:24:04 +0100
commitdeeece0502595dff0a27ed4ee8159ee64b7fb3ea (patch)
tree69c9b9fc2f54408fda88d54d66c2015df4ed54cd /gnuradio-runtime/lib
parent7d619aed8b8eb185890df2940cbee5de6062c4bd (diff)
pmt: Fix RuntimeError in pmt_to_python
Python has a RuntimeError that's thrown during the pmt to_python function. Instead of throwing this error, SWIG has been updated to throw a TypeError. This allows us to keep the same behavior whereby we iterate over PMT types until the proper conversion is found
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r--gnuradio-runtime/lib/pmt/pmt.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt.cc b/gnuradio-runtime/lib/pmt/pmt.cc
index d14e695763..7ea1c9a5b5 100644
--- a/gnuradio-runtime/lib/pmt/pmt.cc
+++ b/gnuradio-runtime/lib/pmt/pmt.cc
@@ -37,7 +37,7 @@ exception::exception(const std::string& msg, pmt_t obj)
}
wrong_type::wrong_type(const std::string& msg, pmt_t obj)
- : exception(msg + ": wrong_type ", obj)
+ : invalid_argument(msg + ": wrong_type " + write_string(obj))
{
}