We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 80e32da + 716179d commit 0081b01Copy full SHA for 0081b01
mbed_lstools/lstools_win7.py
@@ -161,7 +161,10 @@ def get_mbeds(self):
161
for mbed in self.get_mbed_devices():
162
mountpoint = re.match('.*\\\\(.:)$', mbed[0]).group(1)
163
# TargetID is a hex string with 10-48 chars
164
- tid = re.search('[&#]([0-9A-Za-z]{10,48})[&#]', mbed[1]).group(1)
+ m = re.search('[&#]([0-9A-Za-z]{10,48})[&#]', mbed[1])
165
+ if not m:
166
+ continue
167
+ tid = m.group(1)
168
mbeds += [(mountpoint, tid)]
169
self.debug(self.get_mbeds.__name__, (mountpoint, tid))
170
return mbeds
0 commit comments