diff --git a/can/interfaces/neousys/neousys.py b/can/interfaces/neousys/neousys.py index b7dd2117c..cb9d0174d 100644 --- a/can/interfaces/neousys/neousys.py +++ b/can/interfaces/neousys/neousys.py @@ -239,5 +239,8 @@ def shutdown(self): @staticmethod def _detect_available_configs(): - # There is only one channel - return [{"interface": "neousys", "channel": 0}] + if NEOUSYS_CANLIB is None: + return [] + else: + # There is only one channel + return [{"interface": "neousys", "channel": 0}]