summaryrefslogtreecommitdiff
path: root/grc/gui/Port.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2016-07-27 22:24:15 +0200
committerSebastian Koslowski <koslowski@kit.edu>2016-08-08 20:36:48 +0200
commit5d4baf530af8ca843dcfe310af3bd34d4cf7c3ad (patch)
tree442efff724523e80939b4f90b888e9a108d4e3b0 /grc/gui/Port.py
parent4542d4b94887db741a5db21cfc80f7690bac0add (diff)
grc: remove support for old msg queues
Diffstat (limited to 'grc/gui/Port.py')
-rw-r--r--grc/gui/Port.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/gui/Port.py b/grc/gui/Port.py
index 0880856b00..21271cc4d6 100644
--- a/grc/gui/Port.py
+++ b/grc/gui/Port.py
@@ -71,7 +71,7 @@ class Port(_Port, Element):
Returns:
a hex color code.
"""
- color = Colors.PORT_TYPE_TO_COLOR[self.get_type()]
+ color = Colors.PORT_TYPE_TO_COLOR.get(self.get_type()) or Colors.PORT_TYPE_TO_COLOR.get('')
vlen = self.get_vlen()
if vlen > 1:
dark = (0, 0, 30 / 255.0, 50 / 255.0, 70 / 255.0)[min(4, vlen)]