Skip to content

Commit bbe2e22

Browse files
committed
tools: Fix pyboard.py to work under Python 3.
1 parent f4fcc14 commit bbe2e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def __init__(self, device, baudrate=115200, user='micro', password='python', wai
128128
try:
129129
self.serial = serial.Serial(device, baudrate=baudrate, interCharTimeout=1)
130130
break
131-
except OSError, IOError: # Py2 and Py3 have different errors
131+
except (OSError, IOError): # Py2 and Py3 have different errors
132132
if wait == 0:
133133
continue
134134
if attempt == 0:

0 commit comments

Comments
 (0)