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


Groups > comp.lang.python > #31240 > unrolled thread

Re: Understanding and dealing with an exception

Started byChris Angelico <rosuav@gmail.com>
First post2012-10-14 16:09 +1100
Last post2012-10-14 16:09 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Understanding and dealing with an exception Chris Angelico <rosuav@gmail.com> - 2012-10-14 16:09 +1100

#31240 — Re: Understanding and dealing with an exception

FromChris Angelico <rosuav@gmail.com>
Date2012-10-14 16:09 +1100
SubjectRe: Understanding and dealing with an exception
Message-ID<mailman.2169.1350191388.27098.python-list@python.org>
On Sun, Oct 14, 2012 at 4:01 PM, Vincent Davis <vincent@vincentdavis.net> 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web