Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Understanding and dealing with an exception

Reply
Thread Tools

Re: Understanding and dealing with an exception

 
 
Chris Angelico
Guest
Posts: n/a
 
      10-14-2012
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Understanding and dealing with an exception Mark Lawrence Python 0 10-14-2012 11:17 AM
Re: Understanding and dealing with an exception Terry Reedy Python 0 10-14-2012 10:06 AM
Re: Understanding and dealing with an exception Mark Lawrence Python 0 10-14-2012 08:20 AM
Re: Understanding and dealing with an exception Chris Angelico Python 0 10-14-2012 04:49 AM
Re: Understanding and dealing with an exception Chris Angelico Python 0 10-14-2012 04:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57