Skip to content

When creating a vector interface with app_name set to None, I get an error #515

Description

@totocaca123

I use function can.interface.detect_available_configs() to scan hardware (I have 1 vector hardware with app_name set to None).

Then when I want to create Vector Interface with app_name set to None, I get an error

self._app_name = app_name.encode()
See error:

File "C:\Python37-32\lib\site-packages\can\interfaces\vector\canlib.py", line 88, in init
self._app_name = app_name.encode()
AttributeError: 'NoneType' object has no attribute 'encode'

I recomment to chech if app_name is None and set self._app_name to ''.encode()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions