Skip to content
Snippets Groups Projects
Commit 3af782d2 authored by Robin.Mueller's avatar Robin.Mueller
Browse files

program exits for invalid comIF now

parent 3a8fc58a
Branches
No related tags found
No related merge requests found
...@@ -47,8 +47,8 @@ def set_communication_interface(tmtc_printer: TmTcPrinter) -> Union[Communicatio ...@@ -47,8 +47,8 @@ def set_communication_interface(tmtc_printer: TmTcPrinter) -> Union[Communicatio
communication_interface = DummyComIF(tmtc_printer=tmtc_printer) communication_interface = DummyComIF(tmtc_printer=tmtc_printer)
if not communication_interface.valid: if not communication_interface.valid:
LOGGER.warning("Invalid communication interface!") LOGGER.warning("Invalid communication interface!")
else: sys.exit()
communication_interface.initialize() communication_interface.initialize()
return communication_interface return communication_interface
except (IOError, OSError): except (IOError, OSError):
LOGGER.error("Error setting up communication interface") LOGGER.error("Error setting up communication interface")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment