Currently, when something goes wrong, the command will report to the user the python traceback.
This information is often then provided to the team to investigate, it is however often not enough to act on.
In particular, the installed image version is not known.
sys.excepthook can be used to "augment" the information printed and therefore made debugging easier.
https://docs.python.org/3/library/sys.html
It could also be used to provide some user feedback
ie: you are seeing a bug, what to do depending if the code is LTS or rolling and surely more