Commit bbe2e22f authored by Damien George's avatar Damien George
Browse files

tools: Fix pyboard.py to work under Python 3.

parent f4fcc14c
......@@ -128,7 +128,7 @@ class Pyboard:
try:
self.serial = serial.Serial(device, baudrate=baudrate, interCharTimeout=1)
break
except OSError, IOError: # Py2 and Py3 have different errors
except (OSError, IOError): # Py2 and Py3 have different errors
if wait == 0:
continue
if attempt == 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment