From 07bdebb5b24920091fd181b566ba8a514ece8e9d Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Tue, 19 Jul 2022 02:43:40 -0400 Subject: [PATCH] Only error if both imports cannot be found, otherwise use pwmio --- adafruit_rtttl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_rtttl.py b/adafruit_rtttl.py index 409af7c..5d5ca74 100644 --- a/adafruit_rtttl.py +++ b/adafruit_rtttl.py @@ -32,7 +32,7 @@ except ImportError: audiocore = audioio except ImportError as e: - if not WAVEFORM_AVAILABLE: + if AUDIOIO_AVAILABLE and not WAVEFORM_AVAILABLE: raise e try: