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
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
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