Skip to content

Commit f74dda9

Browse files
committed
Move ADS1x15 import into try block
1 parent 15f0379 commit f74dda9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_ads1x15/analog_in.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
* Author(s): Carter Nelson, adapted from MCP3xxx original by Brent Rubell
1212
"""
1313

14-
from .ads1x15 import ADS1x15
15-
1614
try:
1715
from typing import Optional
16+
from .ads1x15 import ADS1x15
1817
except ImportError:
1918
pass
2019

0 commit comments

Comments
 (0)