simplifying a lot of shit

This commit is contained in:
d3m1g0d committed 2019-03-26 19:05:42 +01:00
1 parent 9677273f55
commit 548337258f
4 files changed
+53 -1

No files matched your search

+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)