From 00cdd4134a44098f39cf9caea2177573c985a4af Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 18 Dec 2012 15:32:45 +0100 Subject: geo-rep: do not access BaseException.message in syncdutils http://www.python.org/dev/peps/pep-0352/ explains that the .message property of BaseException is being removed. Most of the other exception handlers access .args[] which should be suitable for this case too. Change-Id: I1810450b78d2b3d7f8bd07f2beb02cbe9e2adecb BUG: 888346 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/4328 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/features/marker/utils/syncdaemon/syncdutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/features') diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py index 1d4eb200..3491c0a3 100644 --- a/xlators/features/marker/utils/syncdaemon/syncdutils.py +++ b/xlators/features/marker/utils/syncdaemon/syncdutils.py @@ -171,8 +171,8 @@ def log_raise_exception(excont): logtag = None if isinstance(exc, GsyncdError): if is_filelog: - logging.error(exc.message) - sys.stderr.write('failure: ' + exc.message + "\n") + logging.error(exc.args[0]) + sys.stderr.write('failure: ' + exc.args[0] + '\n') elif isinstance(exc, PickleError) or isinstance(exc, EOFError) or \ ((isinstance(exc, OSError) or isinstance(exc, IOError)) and \ exc.errno == EPIPE): -- cgit