From: Hassan Schroeder Date: 2009-04-14T07:04:55+09:00 Subject: Re: beginner question exifr returns errors On Mon, Apr 13, 2009 at 1:55 PM, pm wrote: > I've a piece of code that looks for 'jpeg' files and reads their exif and > then puts them into appropriate folders. Some times 'bad formated' > jpeg-files gives me a runtime error on the exifr call. > > How can I avoid this ? In the case of a bad formated jpeg file I would like > to be able to read the next one, without interrupting the program You can rescue the exception and log it, ignore it, whatever. HTH, -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com