On Tue, Apr 10, 2012 at 15:59, Albert Claret <acla...@gmail.com> wrote:
>

Hi and pardo for the delay: very busy weeks.

> Both features seem very interesting, will reraiseExceptions allow us to
> catch Exceptions from our own programs?

Yes, that's the idea.  Not much tested, as usual. :-P

> I haven't figured out a way to properly intercept an Exception (for example,
> a connection error) raised by the imdbpy module from my own code to, allow
> the operation to be retried, for example. I assume that setting
> reraiseExceptions and catching them from my own code should work, right?

The IMDbPY exceptions are organized in a small hierarchy:
- IMDbError : Base class for every exception raised by the imdb package.
        |
        +-> IMDbDataAccessError: unable to access some data
        +-> IMDbParserError : unable to parse something

You can import them from the imdb._exceptions module.
If you want to catch them all, use IMDbError.

-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x465BFD47]
http://www.mimante.net/

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to