aboutsummaryrefslogtreecommitdiffstats
path: root/grc
diff options
context:
space:
mode:
authorRyan Volz <ryan.volz@gmail.com>2021-10-13 16:49:24 -0400
committermormj <34754695+mormj@users.noreply.github.com>2021-10-14 06:46:01 -0400
commit2c83f5ce267267119e90c1ab552845edb500030c (patch)
tree8df585856dc1c5d942dcc864548a6cb0608dcef2 /grc
parentdigital: remove deprecation of pfb_clock_sync (diff)
downloadgnuradio-2c83f5ce267267119e90c1ab552845edb500030c.tar.xz
gnuradio-2c83f5ce267267119e90c1ab552845edb500030c.zip
grc: Don't fail when type lookup fails by defaulting to an empty set.
Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
Diffstat (limited to 'grc')
-rw-r--r--grc/core/Connection.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/core/Connection.py b/grc/core/Connection.py
index f979efb3e..e79ffe14e 100644
--- a/grc/core/Connection.py
+++ b/grc/core/Connection.py
@@ -93,7 +93,9 @@ class Connection(Element):
source_dtype = self.source_port.dtype
sink_dtype = self.sink_port.dtype
- if source_dtype != sink_dtype and source_dtype not in ALIASES_OF.get(sink_dtype):
+ if source_dtype != sink_dtype and source_dtype not in ALIASES_OF.get(
+ sink_dtype, default=set()
+ ):
self.add_error_message('Source IO type "{}" does not match sink IO type "{}".'.format(source_dtype, sink_dtype))
source_size = self.source_port.item_size