My connect4 game works fine, but after a user wins the program exits and prints a few tracebacks. Is it possible to not print any tracebacks and just exit a program smoothly?

Recommended Answers

All 2 Replies

What does the trace-back look like?

What does the trace-back look like?

Traceback (most recent call last):
File "c43.py", line 281, in <module>
main()
File "c43.py", line 33, in main
choose()
File "c43.py", line 77, in choose_1
y = input("Please choose a column: ")
KeyboardInterrupt

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.