Skip to content

Commit 3636ea6

Browse files
OskarOskar
authored andcommitted
correcting error handling
1 parent f1332ba commit 3636ea6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

openbci/ganglion.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ def handle_sample(sample):
3434
except:
3535
DefaultDelegate = object
3636
STUB_BTLE = True
37-
finally:
38-
from bluepy.btle import Scanner, DefaultDelegate, Peripheral
37+
else:
38+
from bluepy.btle import Scanner, DefaultDelegate, Peripheral
39+
3940

4041
SAMPLE_RATE = 200.0 # Hz
4142
scale_fac_uVolts_per_count = 1200 / (8388607.0 * 1.5 * 51.0)

0 commit comments

Comments
 (0)