Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102955

Re: ftplib throws: IndexError: tuple index out of range

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Peter Otten <__peter__@web.de>
Newsgroups comp.lang.python
Subject Re: ftplib throws: IndexError: tuple index out of range
Date Mon, 15 Feb 2016 11:04:13 +0100
Organization None
Lines 12
Message-ID <mailman.137.1455530664.22075.python-list@python.org> (permalink)
References <56C05CEF.5080304@rece.vub.ac.be> <n9q04l$ese$1@ger.gmane.org> <56C0C308.6000202@rece.vub.ac.be>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace news.uni-berlin.de S+v/Z7WXN0pcBfs72SottQFdoonReGb76KjhlyvkhBcQ==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'args.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'timeout': 0.09; 'fires': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'wrote:': 0.16; 'mechanism': 0.18; 'somewhere': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'error': 0.27; 'actual': 0.28; 'looks': 0.29; 'arguments,': 0.29; 'raise': 0.29; 'probably': 0.31; 'raised': 0.33; 'problem.': 0.35; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'pain': 0.84; 'pardon': 0.84
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host p57bd81b4.dip0.t-ipconnect.de
User-Agent KNode/4.13.3
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21rc2
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:102955

Show key headers only | View raw


Antoon Pardon wrote:

>> It looks like the actual error is socket.timeout which is probably raised
>> from somewhere inside the stdlib without args.
> 
> I think I know what is going on. I have my own timeout mechanism at work
> here, that works with signals and alarm. When the SIGALRM fires I just
> raise the socket.timeout without arguments, which then causes the problem.

OK, then it's self-inflicted pain ;) 

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: ftplib throws: IndexError: tuple index out of range Peter Otten <__peter__@web.de> - 2016-02-15 11:04 +0100

csiph-web