Skip to content

Commit 1061785

Browse files
committed
catch ctrl-c and dont spam
1 parent 8c39e78 commit 1061785

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

chatblade/__main__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ def main():
66

77

88
if __name__ == "__main__":
9-
main()
9+
try:
10+
main()
11+
except (EOFError, KeyboardInterrupt):
12+
exit()

0 commit comments

Comments
 (0)