CODE: Fix exception handling (commitRes) in build.py