Verified Commit d100a2e7 authored by Clayton Craft's avatar Clayton Craft
Browse files

stm_agps_serial: make trio-serial import failure non-fatal

parent d38ca1b0
# Copyright(c) 2021 by craftyguy "Clayton Craft" <clayton@craftyguy.net>
# Distributed under GPLv3+ (see COPYING) WITHOUT ANY WARRANTY.
import logging
from trio_serial import SerialStream
from .logger import LoggedException
from .stm_agps import STM_AGPS
try:
from trio_serial import SerialStream
except ImportError:
print("warning: trio-serial not found, some drivers may not work "
"correctly")
class STM_AGPS_SERIAL(STM_AGPS):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment