7ef96e732a
The application should not be stopped from this code, removed `sys.exit` and added exceptions to improve error handling. Also added some more checks that were missing. Signed-off-by: Claudius Heine <ch@denx.de>