mirror of
https://github.com/SELinuxProject/setools
synced 2025-01-15 11:40:47 +00:00
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:
parent
ec0c2da337
commit
9f8f8f72c1
2
apol
2
apol
@ -59,7 +59,7 @@ try:
|
||||
|
||||
except Exception as err:
|
||||
if args.debug:
|
||||
logging.exception(str(err))
|
||||
raise
|
||||
else:
|
||||
print(err)
|
||||
|
||||
|
2
sediff
2
sediff
@ -1359,7 +1359,7 @@ try:
|
||||
|
||||
except Exception as err:
|
||||
if args.debug:
|
||||
logging.exception(str(err))
|
||||
raise
|
||||
else:
|
||||
print(err)
|
||||
|
||||
|
2
sedta
2
sedta
@ -152,7 +152,7 @@ try:
|
||||
|
||||
except Exception as err:
|
||||
if args.debug:
|
||||
logging.exception(str(err))
|
||||
raise
|
||||
else:
|
||||
print(err)
|
||||
|
||||
|
2
seinfo
2
seinfo
@ -359,7 +359,7 @@ try:
|
||||
|
||||
except Exception as err:
|
||||
if args.debug:
|
||||
logging.exception(str(err))
|
||||
raise
|
||||
else:
|
||||
print(err)
|
||||
|
||||
|
@ -123,7 +123,7 @@ try:
|
||||
|
||||
except Exception as err:
|
||||
if args.debug:
|
||||
logging.exception(str(err))
|
||||
raise
|
||||
else:
|
||||
print(err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user