python-can icon indicating copy to clipboard operation
python-can copied to clipboard

FIX: Some hardware ID are not compatible with ascii, in that case fal…

Open prunith opened this issue 2 months ago • 1 comments

…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).

Additional Notes

prunith avatar Oct 22 '25 14:10 prunith

Please add a short news fragment, so i can merge

zariiii9003 avatar Nov 30 '25 12:11 zariiii9003