Re: Understanding and dealing with an exception

Discussion in 'Python' started by Chris Angelico, Oct 14, 2012.

  1. On Sun, Oct 14, 2012 at 4:01 PM, Vincent Davis <> wrote:
    > I can open it is and all looks good using Pixelmator (I don't have Photoshop
    > installed). I don't think there is anything wrong with the image.
    >
    > Part of my question is a result of being new to actually using exceptions in
    > my programs and dealing with the exceptions is a primary part of what I need
    > to do with this program. When I get an exception that seems to be an issue
    > with PIL (i.e. not my program or a problem with the image) I am not sure
    > what the "right" or conventional way to deal with it is.


    Ah, okay. Sorry, I don't know PIL at all, and was just reading the
    error message itself. It does seem that you're trying to read more
    than 1<<31 bytes from a 1.2MB file, though you could confirm that by
    looking at the source code - the file and line as in the traceback.

    ChrisA
     
    Chris Angelico, Oct 14, 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. Chris Angelico
    Replies:
    0
    Views:
    193
    Chris Angelico
    Oct 14, 2012
  2. Chris Angelico
    Replies:
    0
    Views:
    205
    Chris Angelico
    Oct 14, 2012
  3. Mark Lawrence
    Replies:
    0
    Views:
    159
    Mark Lawrence
    Oct 14, 2012
  4. Terry Reedy
    Replies:
    0
    Views:
    155
    Terry Reedy
    Oct 14, 2012
  5. Mark Lawrence
    Replies:
    0
    Views:
    207
    Mark Lawrence
    Oct 14, 2012
Loading...

Share This Page