Closed calebstewart closed 3 years ago
As a note, I only modified one line. However, Python Black runs automatically and appears to have made a lot of changes. Python Black does not change the functionality of code, and only formats it properly. For ease of analysis, I changed line 537
in the new file which equates to line 393
in the old version.
patch must contain only changes for one issue. code refactoring must be on separate path.
Sorry, I can't take this as is. As @alex-eri says, please limit patches to the functionality you want to change, and not needless formatting changes.
It appears that some devices do not have a device type that
python-networkmanager
understands. The old code would cause exceptions and refuse to run if you had such a device on your system. I simply changed the lookup for device types to return a "Generic" device in the event that the type was unknown.