Skip to content

Error on detector due to new implementations #50

@yeyeto2788

Description

@yeyeto2788

Using the detect.py and exception is raised due to new implementations (Onion Omega implementations)

Traceback (most recent call last):
 File "/home/xxx/own_workspace/Adafruit_Python_PlatformDetect/bin/detect.py", line 7, in <module>
   print("Chip id: ", detector.chip.id)
 File "/home/xxx/own_workspace/Adafruit_Python_PlatformDetect/adafruit_platformdetect/chip.py", line 66, in id
   return self._linux_id()
 File "/home/xxx/own_workspace/Adafruit_Python_PlatformDetect/adafruit_platformdetect/chip.py", line 111, in _linux_id
   if "MIPS 24Kc" in cpu_model:
TypeError: argument of type 'NoneType' is not iterable

I'll file a PR fixing the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions