diff options
author | Mingzhe Zou <zoumingzhe@qq.com> | 2023-03-27 16:42:43 +0800 |
---|---|---|
committer | Mingzhe Zou <zoumingzhe@qq.com> | 2023-03-27 16:44:40 +0800 |
commit | b4632c05d8c0a51460fb84ea70820f5136105fff (patch) | |
tree | cc1a61bf98fb3584232923eb8ab777e31aff5710 | |
parent | 033cf1c2d34c73cce84c4c12c7383188167bf9e5 (diff) | |
download | targetcli-b4632c05d8c0a51460fb84ea70820f5136105fff.tar.gz |
targetcli: avoild Ctrl+C print error stack
Signed-off-by: Mingzhe Zou <zoumingzhe@qq.com>
-rwxr-xr-x | scripts/targetcli | 5 |
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 |