summaryrefslogtreecommitdiffstats
path: root/xlators/features/marker
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2012-12-18 15:32:45 +0100
committerAnand Avati <avati@redhat.com>2012-12-18 14:17:35 -0800
commit00cdd4134a44098f39cf9caea2177573c985a4af (patch)
tree3d6e74ecec1cceed694a27a8cc23f0a7ec25be75 /xlators/features/marker
parentfe4c85958d55495bb6d15f607d63f5df0751e8d3 (diff)
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 <Exception>.args[] which should be suitable for this case too. Change-Id: I1810450b78d2b3d7f8bd07f2beb02cbe9e2adecb BUG: 888346 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/4328 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/features/marker')
-rw-r--r--xlators/features/marker/utils/syncdaemon/syncdutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/syncdutils.py b/xlators/features/marker/utils/syncdaemon/syncdutils.py
index 1d4eb2003..3491c0a3c 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):