error in except

Chris Angelico rosuav at gmail.com
Mon Feb 4 22:54:25 CET 2013


On Tue, Feb 5, 2013 at 8:49 AM, Rodrick Brown <rodrick.brown at gmail.com> 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



More information about the Python-list mailing list