Catch any importing errors.

This commit is contained in:
Chris Johns 2013-03-04 09:17:41 +11:00
parent 26595c7b29
commit c18c4b6d33
2 changed files with 26 additions and 11 deletions

View File

@ -29,11 +29,18 @@ import os
import re import re
import sys import sys
import defaults try:
import error import defaults
import execute import error
import log import execute
import path import log
import path
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
def _check_bool(value): def _check_bool(value):
if value.isdigit(): if value.isdigit():

View File

@ -28,12 +28,20 @@ import glob
import operator import operator
import os import os
import build try:
import check import build
import defaults import check
import error import defaults
import log import error
import path import log
import path
import reports
except KeyboardInterrupt:
print 'user terminated'
sys.exit(1)
except:
print 'unknown application load error'
sys.exit(1)
# #
# Version of RTEMS Source Builder Set Builder. # Version of RTEMS Source Builder Set Builder.