Skip to content

Commit 232e6db

Browse files
committed
Handle missing app_name in vector interface.
Closes hardbyte#515
1 parent bb7ea01 commit 232e6db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

can/interfaces/vector/canlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, channel, can_filters=None, poll_interval=0.01,
8585
else:
8686
# Assume comma separated string of channels
8787
self.channels = [int(ch.strip()) for ch in channel.split(',')]
88-
self._app_name = app_name.encode()
88+
self._app_name = app_name.encode() if app_name is not None else ''
8989
self.channel_info = 'Application %s: %s' % (
9090
app_name, ', '.join('CAN %d' % (ch + 1) for ch in self.channels))
9191

0 commit comments

Comments
 (0)