Continuing after error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sheldon

    #1

    Continuing after error

    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

  • Georg Brandl

    #2
    Re: Continuing after error

    Sheldon wrote:
    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

    Comment

    Working...