Skip to content

Commit c98e4ee

Browse files
committed
Make the sphinx check more thorough. Fixes #1
1 parent c6752b4 commit c98e4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_circuitplayground/express.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Express:
2020
a time."""
2121
def __init__(self):
2222
# Only create the circuit module member when we're aren't being imported by Sphinx
23-
if digitalio.DigitalInOut.__module__ == "sphinx.ext.autodoc":
23+
if "__module__" in dir(digitalio.DigitalInOut) and digitalio.DigitalInOut.__module__ == "sphinx.ext.autodoc":
2424
return
2525
self._a = digitalio.DigitalInOut(board.BUTTON_A)
2626
self._a.switch_to_input(pull=digitalio.Pull.DOWN)

0 commit comments

Comments
 (0)