-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 21 March 2007 03:43 PM, Kenneth Gonsalves cobbled together
some glyphs to say:

> may cause a crash if he is too modest to accept it:
> 
> try:
>     credit.reDirect("roshan")
> except:
>     print "he has declined the honour"

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"

;)

Regards,
BG

- --
Baishampayan Ghose <[EMAIL PROTECTED]>
Ubuntu -- Linux for Human Beings
http://www.ubuntu.com/

1024D/86361B74
BB2C E244 15AD 05C5 523A  90E7 4249 3494 8636 1B74

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFGARimQkk0lIY2G3QRAs6MAJ9XCJZzi5KwBii7oSD58A6lzI2bvQCgoxo4
XkxTduqdSfN8KJPe7/e38GM=
=7wlo
-----END PGP SIGNATURE-----

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

Reply via email to