X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=client%2Fgoodfet.bsl;h=949c4317622780808189a4031148f58c6bb3b234;hp=dc5fd8708ca741d75407fb14a7f123084462b097;hb=052771a83e020314b718e82d0b1b2a645a7c3d4f;hpb=5ee19fee9dc2095ccb67fc2a86c53799ae47b403 diff --git a/client/goodfet.bsl b/client/goodfet.bsl index dc5fd87..949c431 100755 --- a/client/goodfet.bsl +++ b/client/goodfet.bsl @@ -1402,11 +1402,13 @@ def main(itest=1): from scanwin32 import winScan; scan=winScan(); for order,comport,desc,hwid in sorted(scan.comports()): - if hwid.index('FTDI')==0: - comPort=comport; - #print "Using FTDI port %s" % port - - + try: + if hwid.index('FTDI')==0: + comPort=comport; + #print "Using FTDI port %s" % port + except: + #Do nothing. + a=1; sys.stderr.write("MSP430 Bootstrap Loader Version: %s\n" % VERSION) try: