On 21-Mar-07, at 5:06 PM, Baishampayan Ghose wrote:

It's wrong to catch all exceptions like that. The code should be like
this --

try:
    credit.redirect("Roshan")
except CreditRedirectionError:
    print "He has declined the honour"

but then you would need to raise CreditRedirectionError somewhere - too much work for doubtful gains - not pythonish


--
regards

Kenneth Gonsalves
Associate, NRC-FOSS
[EMAIL PROTECTED]
http://nrcfosshelpline.in/web/




--
http://mm.glug-bom.org/mailman/listinfo/linuxers

Reply via email to