error handling

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

    error handling

    I hope somebody could tell me how i can make a python script handling
    errors i want that if a error is arise that the script starts all over
    from then beginning and not that is is printing the error.

    thank u for helping me!
  • gael.pegliasco@free.fr

    #2
    Re: error handling

    Frank Bechstein a écrit :

    [color=blue]
    > I hope somebody could tell me how i can make a python script handling
    > errors i want that if a error is arise that the script starts all over
    > from then beginning and not that is is printing the error.
    >
    > thank u for helping me![/color]

    I think exception can help you in this task, you can find documentation
    and examples in the tutorial at this url :
    The official home of the Python Programming Language


    Gaël,

    Comment

    • Daniel 'Dang' Griffith

      #3
      Re: error handling

      On Tue, 11 May 2004 02:01:51 +0200, Frank Bechstein
      <FrankBechstein @t-online.de> wrote:
      [color=blue]
      >I hope somebody could tell me how i can make a python script handling
      >errors i want that if a error is arise that the script starts all over
      >from then beginning and not that is is printing the error.
      >
      >thank u for helping me![/color]
      In addition to reading about exceptions, it might be good to have the
      program do something different. Start from a different beginning, so
      the error does not happen repeatedly. :)
      --dang

      Comment

      • Frank Bechstein

        #4
        Re: error handling

        Thank you! I figured it out

        Comment

        Working...