Skip to content

Commit 07bdebb

Browse files
committed
Only error if both imports cannot be found, otherwise use pwmio
1 parent 695e52c commit 07bdebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_rtttl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
except ImportError:
3333
audiocore = audioio
3434
except ImportError as e:
35-
if not WAVEFORM_AVAILABLE:
35+
if AUDIOIO_AVAILABLE and not WAVEFORM_AVAILABLE:
3636
raise e
3737

3838
try:

0 commit comments

Comments
 (0)