diff options
Diffstat (limited to 'grc')
-rw-r--r-- | grc/python/Port.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/python/Port.py b/grc/python/Port.py index 9e9f5676e..8cc9e9ad0 100644 --- a/grc/python/Port.py +++ b/grc/python/Port.py @@ -117,7 +117,8 @@ class Port(_Port, _GUIPort): _Port.validate(self) if not self.get_enabled_connections() and not self.get_optional(): self.add_error_message('Port is not connected.') - if not self.is_source() and (not self.get_type() == "message") and len(self.get_enabled_connections()) > 1: + is_msg = (not self.get_type()) or (self.get_type() == "message") + if not self.is_source() and (not is_msg) and len(self.get_enabled_connections()) > 1: self.add_error_message('Port has too many connections.') #message port logic if self.get_type() == 'msg': |