BaseTools/Capsule: Prevent traceback during signing operations
https://bugzilla.tianocore.org/show_bug.cgi?id=1046 https://bugzilla.tianocore.org/show_bug.cgi?id=1048 https://bugzilla.tianocore.org/show_bug.cgi?id=1050 Remove raise statements that generate Tracebacks that were only intended for development/debug. With the raise statements removed proper error messages are shown. Cc: Sean Brogan <sean.brogan@microsoft.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
parent
d6f079b600
commit
e49eee4c51
@ -408,7 +408,6 @@ if __name__ == '__main__':
|
|||||||
)
|
)
|
||||||
except:
|
except:
|
||||||
print ('GenerateCapsule: error: can not sign payload')
|
print ('GenerateCapsule: error: can not sign payload')
|
||||||
raise
|
|
||||||
sys.exit (1)
|
sys.exit (1)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@ -496,7 +495,6 @@ if __name__ == '__main__':
|
|||||||
print ('========')
|
print ('========')
|
||||||
except:
|
except:
|
||||||
print ('GenerateCapsule: error: can not decode capsule')
|
print ('GenerateCapsule: error: can not decode capsule')
|
||||||
raise
|
|
||||||
sys.exit (1)
|
sys.exit (1)
|
||||||
|
|
||||||
elif args.DumpInfo:
|
elif args.DumpInfo:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user