Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions serialx/serialx_rust.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
try:
from serialx._serialx_rust import list_serial_ports_impl
except ImportError:
LOGGER.warning(
"serialx Rust extension failed to load; serial port enumeration will "
"not be available"
)

def list_serial_ports_impl() -> list[RustSerialPortInfo]:
"""Return an empty list when the Rust extension is unavailable."""
LOGGER.warning(
"serialx Rust extension failed to load; serial port enumeration will "
"not be available"
)

return []
Loading