Re: Replacement for e.message() in python 2.6

2010-02-19 Thread Chris Prinos
On Feb 17, 4:58 am, Nandakumar Chandrasekhar wrote: > Dear Folks, > > In previous versions of Python I used to use e.message() to print out > the error message of an exception like so: > > try: >         result = x / y > except ZeroDivisionError, e: >         print e.message() > > Unfortunately in

Re: Replacement for e.message() in python 2.6

2010-02-17 Thread Arnaud Delobelle
Nandakumar Chandrasekhar writes: > Dear Folks, > > In previous versions of Python I used to use e.message() to print out > the error message of an exception like so: > > try: > result = x / y > except ZeroDivisionError, e: > print e.message() > > Unfortunately in Python 2.6 the messag

Replacement for e.message() in python 2.6

2010-02-17 Thread Nandakumar Chandrasekhar
Dear Folks, In previous versions of Python I used to use e.message() to print out the error message of an exception like so: try: result = x / y except ZeroDivisionError, e: print e.message() Unfortunately in Python 2.6 the message method is deprecated. Is there any replaceme