summaryrefslogtreecommitdiff
path: root/grc/python/Port.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/python/Port.py')
-rw-r--r--grc/python/Port.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/Port.py b/grc/python/Port.py
index f664204e85..0b97f69cb5 100644
--- a/grc/python/Port.py
+++ b/grc/python/Port.py
@@ -184,9 +184,9 @@ class Port(_Port, _GUIPort):
Returns:
the number of ports or 1
"""
+ if self._nports == '': return ''
+
nports = self.get_parent().resolve_dependencies(self._nports)
- if not nports: # return blank if nports is blank
- return ''
try:
return max(1, int(self.get_parent().get_parent().evaluate(nports)))
except: