Skip to content

Commit 5dcebd7

Browse files
Supress 'SystemError: DeviceNotFound' in cantact detect_available_configs() (hardbyte#1077)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent c64f162 commit 5dcebd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/interfaces/cantact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CantactBus(BusABC):
2525
def _detect_available_configs():
2626
try:
2727
interface = cantact.Interface()
28-
except NameError:
28+
except (NameError, SystemError):
2929
# couldn't import cantact, so no configurations are available
3030
return []
3131

0 commit comments

Comments
 (0)