summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMingzhe Zou <zoumingzhe@qq.com>2023-03-27 16:42:43 +0800
committerMingzhe Zou <zoumingzhe@qq.com>2023-03-27 16:44:40 +0800
commitb4632c05d8c0a51460fb84ea70820f5136105fff (patch)
treecc1a61bf98fb3584232923eb8ab777e31aff5710
parent033cf1c2d34c73cce84c4c12c7383188167bf9e5 (diff)
downloadtargetcli-b4632c05d8c0a51460fb84ea70820f5136105fff.tar.gz
targetcli: avoild Ctrl+C print error stack
Signed-off-by: Mingzhe Zou <zoumingzhe@qq.com>
-rwxr-xr-xscripts/targetcli5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/targetcli b/scripts/targetcli
index f00bffc..89a8188 100755
--- a/scripts/targetcli
+++ b/scripts/targetcli
@@ -326,4 +326,7 @@ def main():
if __name__ == "__main__":
- main()
+ try:
+ main()
+ except KeyboardInterrupt:
+ pass