mcphail / linux_huawei_unlocker

A utility to remove the SIM lock on Huawei USB modems
GNU General Public License v2.0
108 stars 51 forks source link

Bug: uncaught exception preventing correct probing of connected modems #15

Open dumblob opened 7 years ago

dumblob commented 7 years ago

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