Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #38143
| References | <CABRP1o-UkR9j3Ry+xYgpFobAo0yETVvy_8pUm4UYZQO0=rSEAw@mail.gmail.com> |
|---|---|
| Date | 2013-02-05 08:54 +1100 |
| Subject | Re: error in except |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1336.1360014867.2939.python-list@python.org> (permalink) |
On Tue, Feb 5, 2013 at 8:49 AM, Rodrick Brown <rodrick.brown@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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: error in except Chris Angelico <rosuav@gmail.com> - 2013-02-05 08:54 +1100
csiph-web