How to catch str exception?

MRAB google at mrabarnett.plus.com
Fri May 15 10:43:27 EDT 2009


anuraguniyal at yahoo.com wrote:
>> It would be better to write your own exception class:
>>
>> class MyException(Exception):
>>      pass
> 
> 
> and how would i automatically inject this into 3rd part library

Ah, I wasn't reading carefully enough! :-)



More information about the Python-list mailing list