Continuing after error

S

Sheldon

Hi,

Does anyone know if it is possible to resume the execution of a program
after it stops at an error in the code and the error was corrected?

Sincerely,
Sheldon
 
G

Georg Brandl

Sheldon said:
Hi,

Does anyone know if it is possible to resume the execution of a program
after it stops at an error in the code and the error was corrected?

try:
do something
except SomeException:
correct the error

do something else

i.e. you handle the error in the except clause. If that's successful, your
program will continue normally.

Georg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top