Re: exception problem

Discussion in 'Python' started by Chris Angelico, Jun 24, 2012.

  1. On Mon, Jun 25, 2012 at 8:26 AM, Charles Hixson
    <> 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
     
    Chris Angelico, Jun 24, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jeff
    Replies:
    0
    Views:
    1,541
  2. jeff
    Replies:
    3
    Views:
    1,702
    Scott
    Jun 26, 2003
  3. Kerri
    Replies:
    2
    Views:
    13,056
    Kevin Spencer
    Oct 27, 2003
  4. Ola
    Replies:
    0
    Views:
    541
  5. Selen
    Replies:
    0
    Views:
    2,695
    Selen
    May 28, 2004
Loading...

Share This Page