Computer Science, asked by ruchichopra5851, 1 year ago

How to catch a thread's exception in the caller thread in Python?

Answers

Answered by kriti2000
7
_____________________________☺

I'm very new to Python and multithreaded programming in general. Basically, I have a script that will copy files to another location. I would like this to be placed in another thread so I can output .... to indicate that the script is still running.

The problem that I am having is that if the files cannot be copied it will throw an exception. This is ok if running in the main thread; however, having the following code does not work:
_____________________________
Similar questions