Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31240
| References | <CALyJZZXtxD5HZCZ6C21-uPgxQUhvWw7xaUZsmPw-whTvhjGBsA@mail.gmail.com> <CAPTjJmo96WxHi-Y+ZbhQD3P3rBFLstn5OtOoydXZxDKpGcsjBg@mail.gmail.com> <CALyJZZUe51=Ge68X1Cnwsb4-eDGcxy3sOH9Yyzsay3h4MAOktw@mail.gmail.com> <CAPTjJmpi0-kSboeW130ineM2dO89TzQhoVVwfsURZoLCuWTUYQ@mail.gmail.com> <CALyJZZUVVXNR68FXNnuRCHAN_rRN_5O-R8bbHC7_P=NDrE78Sw@mail.gmail.com> |
|---|---|
| Date | 2012-10-14 16:09 +1100 |
| Subject | Re: Understanding and dealing with an exception |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2169.1350191388.27098.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Understanding and dealing with an exception Chris Angelico <rosuav@gmail.com> - 2012-10-14 16:09 +1100
csiph-web