Stop using deprecated 'message' attribute in Exception

The 'message' attribute has been deprecated and removed
from Python3.
For more details, please check:
https://www.python.org/dev/peps/pep-0352/

Change-Id: I152e79352705a3e43ce464a8f087b0e93f072035
This commit is contained in:
bhavani.cr 2017-07-13 16:22:03 +05:30 committed by bhavani
parent 63c4215994
commit 35cf1891f3
1 changed files with 1 additions and 1 deletions

View File

@ -529,5 +529,5 @@ class HTMLViewer(object):
--></a></td></tr>' % (app_path,
profile_id, nfls))
except Exception as ex:
html.append("Exception:" % ex.message)
html.append("Exception:" % str(ex))
return ''.join(html)