Re: error in except

Discussion in 'Python' started by Chris Angelico, Feb 4, 2013.

  1. On Tue, Feb 5, 2013 at 8:49 AM, Rodrick Brown <> wrote:
    > if delay > 2.0:
    > raise RuntimeError('I think the server is down')
    > except:
    > raise
    > else:
    > break


    I think you have an indentation error here. Backtab the except maybe?
    Or possibly just omit it altogether.

    ChrisA
     
    Chris Angelico, Feb 4, 2013
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Salerno
    Replies:
    20
    Views:
    884
    John Salerno
    Aug 11, 2006
  2. Fabio Z Tessitore

    who is simpler? try/except/else or try/except

    Fabio Z Tessitore, Aug 12, 2007, in forum: Python
    Replies:
    5
    Views:
    399
  3. David House

    try -> except -> else -> except?

    David House, Jul 6, 2009, in forum: Python
    Replies:
    2
    Views:
    365
    Bruno Desthuilliers
    Jul 6, 2009
  4. Peng Yu
    Replies:
    1
    Views:
    563
    Steven D'Aprano
    Nov 18, 2009
  5. MRAB
    Replies:
    0
    Views:
    875
Loading...

Share This Page