Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'else:': 0.03; 'except:': 0.07; 'omit': 0.07; 'received:mail-vc0-f174.google.com': 0.09; 'subject:error': 0.11; '2.0:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.17; 'feb': 0.19; 'raise': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'possibly': 0.27; 'message-id:@mail.gmail.com': 0.27; 'indentation': 0.29; 'received:209.85.220.174': 0.29; 'error': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'except': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'think': 0.40; 'brown': 0.65; '2013': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=ZOu7gOAIwHJTi2VFoS9tLojF6Mq1wjiRiRLihJh2Tic=; b=Eato7oMnogxuo0eBtg2weyrgr5P6YV2hLW/py5oTbEH5wmx0P/ck5k2MMH0jhPSui+ 77Xv/P8vBeB4Oomh1yaS3uipFYpyMktyvy9sa4+JFkMpv7uEoBjvae3AoSBbcoDgrhE3 A0hAz2/3nawTObolyUGQFLD5S9AFveBh9gEHPHwPFv+kLn3xWuqZIndu4DqWvOXZmPYo pU1tTj7g8qMdw21SHET4aapDjBcZoxbGXM128goDraim3x/IDn70++vIDavTOoJ4v3SO 1SB/Ssrr7E0UJd5hJ83Ua7bbaHWYChVWD6BAB9aUUm9cvrKtrYNZ/dv3E2kTmhhC9BUZ frzQ== MIME-Version: 1.0 X-Received: by 10.52.88.197 with SMTP id bi5mr21443642vdb.58.1360014865375; Mon, 04 Feb 2013 13:54:25 -0800 (PST) In-Reply-To: References: Date: Tue, 5 Feb 2013 08:54:25 +1100 Subject: Re: error in except From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360014867 news.xs4all.nl 6841 [2001:888:2000:d::a6]:59163 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38143 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