The following lines were throwing an exception for me and because it went uncaught, the for cycle didn't loop further to probe other ttys which was effectively preventing to work for my modem. After catching the exception and skipping the rest of the iteration, the following iterations probed my modem correctly and the whole thing worked like a charm!
The following lines were throwing an exception for me and because it went uncaught, the for cycle didn't loop further to probe other ttys which was effectively preventing to work for my modem. After catching the exception and skipping the rest of the iteration, the following iterations probed my modem correctly and the whole thing worked like a charm!
https://github.com/mcphail/linux_huawei_unlocker/blob/885e7d78fa1bd290dbe38e5b6f24628b2ef0b874/unlocker.py#L76-L79