Remove extra except.
except except Exception -> except Exception
@@ -336,7 +336,7 @@ class EnclosureMark1(Enclosure):
url=self.port, baudrate=self.rate, timeout=self.timeout)
LOG.info("Connected to: %s rate: %s timeout: %s" %
(self.port, self.rate, self.timeout))
- except except Exception:
+ except Exception:
LOG.error("Impossible to connect to serial port: "+str(self.port))
raise
