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


Groups > comp.lang.python > #24402

Re: exception problem

References <4FE79433.8020704@earthlink.net>
Date 2012-06-25 08:36 +1000
Subject Re: exception problem
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1462.1340577374.4697.python-list@python.org> (permalink)

Show all headers | View raw


On Mon, Jun 25, 2012 at 8:26 AM, Charles Hixson
<charleshixsn@earthlink.net> wrote:
> The code:
>                finally:
>                    print ("at finally")
>                print ("chunks =")
> produces this result:
> path  3...

Can you state more clearly the problem, please? I'm seeing output that
can't have come from the code posted (for instance, immediately after
the "at finally", I'm expecting to see the "chunks =" line), and I'm
not seeing any exception information, so I can't even hazard a guess
as to what's throwing the exception.

Presumably these are two methods in the same class, since you're
calling it as "self.chunkLine", but beyond that, it's hard to know.
Take off the try/except and let your exception go to console, that's
usually the easiest thing to deal with.

Chris Angelico

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


Thread

Re: exception problem Chris Angelico <rosuav@gmail.com> - 2012-06-25 08:36 +1000

csiph-web