Replies: 1 comment
-
I'm having a similar issue, I am running pyodbc in a docker container via kubernetes and would like to gracefully handle the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'll start by disclosing that I am very rusty in Python, so I may be making a simple mistake.
I am trying to catch a KeyboardInterrupt while pyodbc is executing several sql statements. I have tried both a SIGINT handler and a try/except block and neither seem to work. My script is doing:
If the user is seeing unwanted results, I want them to be able to cancel and not have to wait for all the sql statements to run.
I've tried:
I've also tried a SIGINT handler. In both cases I'm getting errors.
How do I properly handle a keyboard interrupt with pyodbc?
Beta Was this translation helpful? Give feedback.
All reactions