FIX: Some hardware ID are not compatible with ascii, in that case fal… by prunith · Pull Request #2001 · hardbyte/python-can
…lback to guid
Summary of Changes
This change correct detection of hardware id for legacy product and VCI 3.5 (i.e {xxxxxx-xxxx-xxxx-xxxxxxxxxxxx}). decode("ascii") is not able to produce a result and trig an exception.
For this particular situation we use AsGuid and compute string {xxxxxx-xxxx-xxxx-xxxxxxxxxxxx} the same that is reported by iXXat cananalizer. Also update config hwid detection.
Related Issues / Pull Requests
Not linked to Issue yet
- Closes #
- Related to #
Type of Change
- [x ] Bug fix
- New feature
- Documentation update
- Refactoring
- Other (please describe):
Checklist
- [x ] I have followed the contribution guide.
- I have added or updated tests as appropriate.
- I have added or updated documentation as appropriate.
- I have added a news fragment for towncrier.
- All checks and tests pass (
tox).