Change tool exception handlers to re-raise the exception if debugging.

This will allow the debugger to catch the exception for debugging purposes.
This commit is contained in:
Chris PeBenito 2016-07-22 19:14:40 -04:00
parent ec0c2da337
commit 9f8f8f72c1
6 changed files with 6 additions and 6 deletions

2
apol
View File

@ -59,7 +59,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)

2
sediff
View File

@ -1359,7 +1359,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)

2
sedta
View File

@ -152,7 +152,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)

2
seinfo
View File

@ -359,7 +359,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)

View File

@ -123,7 +123,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)

View File

@ -241,7 +241,7 @@ try:
except Exception as err:
if args.debug:
logging.exception(str(err))
raise
else:
print(err)