Aaron Brady wrote:
Exceptions are only caught when raised in a 'try' statement.  If you
 don't raise the exception in a try statement, it won't be caught.

The function you posted will raise an exception. If you are making the call yourself, that is, if only the definition is foreign, then simply catch exceptions when so.


Seeing my code and reading you post I found that... yes, are a my fault!
I'm catching only an exception in a code/function definition, no its
execution!

Just modified my code to catch the exception *inside* the def and not
before and... now work!

Michele
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to