better error for import issue

This commit is contained in:
Robin Müller 2021-06-17 18:55:57 +02:00
parent c5e3c36a0c
commit 29f94ddc85
No known key found for this signature in database
GPG Key ID: 9C287E88FED11DF3
2 changed files with 4 additions and 3 deletions

View File

@ -30,10 +30,11 @@ import sys
from config.hook_implementation import FsfwHookBase
try:
from tmtccmd.runner import run_tmtc_commander, initialize_tmtc_commander
except ImportError:
except ImportError as error:
run_tmtc_commander = None
initialize_tmtc_commander = None
print("Python tmtccmd submodule not installed")
print(error)
print("Python tmtccmd submodule could not be imported")
print("Install with \"cd tmtccmd && python3 -m pip install -e .\" for interactive installation")
sys.exit(0)

@ -1 +1 @@
Subproject commit 0d91e26bc576c2dea7769d16d3b5a8a8bc10482c
Subproject commit e0b36e1e479a8608f4268cede6a6add8d433b436