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