simplifying a lot of shit

This commit is contained in:
d3m1g0d
2019-03-26 19:05:42 +01:00
parent 9677273f55
commit 548337258f
4 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class Spectrometer:
self.baudrate = baudrate
self.timeout = 1
try:
self.serialObject = ser.Serial(path, baudrate, timeout=tout)
self.serialObject =
except:
raise Exception('An exception occured when opening the serial port at {}'.format(path))
ex(1)