Skip to content

Commit

Permalink
Merge pull request #439 from sosswald/fix-428
Browse files Browse the repository at this point in the history
Fix crash of rqt_graph when enable_statistics == true, fixes #428
  • Loading branch information
dirk-thomas committed Mar 2, 2017
2 parents 0035423 + ceb46bc commit a1c5d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqt_graph/src/rqt_graph/dotcode.py
Expand Up @@ -172,7 +172,7 @@ def _calc_statistic_info(self, sub, topic, pub=None):
if pub is None and sub in self.edges and topic in self.edges[sub]:
conns = len(self.edges[sub][topic])
if conns == 1:
pub = next(self.edges[sub][topic].keys())
pub = next(iter(self.edges[sub][topic].keys()))
else:
penwidth = self._calc_edge_penwidth(sub,topic)
color = self._calc_edge_color(sub,topic)
Expand Down

0 comments on commit a1c5d62

Please sign in to comment.