Skip to content

Commit 42d47b6

Browse files
committed
Fix _detect_available_configs
1 parent c151e7c commit 42d47b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

can/interfaces/cantact.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class CantactBus(BusABC):
2727
def _detect_available_configs():
2828
try:
2929
interface = cantact.Interface()
30-
except (NameError, SystemError):
31-
logger.debug("Could not import cantact, so no configurations are available")
30+
except (NameError, SystemError, AttributeError):
31+
logger.debug(
32+
"Could not import or instantiate cantact, so no configurations are available"
33+
)
3234
return []
3335

3436
channels = []

0 commit comments

Comments
 (0)