Merge branch 'fix_126' into '0.10'

replace some exit by raising an error

See merge request !133

(cherry picked from commit d91ee751)

743bd45f replace some exit by raising an error
5 jobs for cherry-pick-d91ee751 in 1 minute and 55 seconds (queued for 2 seconds)