Skip to content

Commit

Permalink
dont let set() to became [set()] since that leads to a destination no…
Browse files Browse the repository at this point in the history
…de is not in network error
  • Loading branch information
darbula committed Apr 21, 2016
1 parent 6b02074 commit af97dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymote/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def send(self, message):
"""
message.source = self
message.destination = isinstance(message.destination, collections.Iterable) and \
message.destination or [message.destination]
if not isinstance(message.destination, collections.Iterable):
message.destination = [message.destination]
for destination in message.destination:
logger.debug('Node %d sent message %s.' %
(self.id, message.__repr__()))
Expand Down

0 comments on commit af97dfb

Please sign in to comment.