From a81ac6938ebb83f179b2bab99a3571c1c29dd87d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 12 Aug 2015 12:58:47 -0400 Subject: [PATCH] [RM-12677] reference HttpError from the right location: exc module Signed-off-by: Alfredo Deza --- radosgw_agent/lock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radosgw_agent/lock.py b/radosgw_agent/lock.py index d3d45e0..3e64f16 100644 --- a/radosgw_agent/lock.py +++ b/radosgw_agent/lock.py @@ -3,6 +3,7 @@ import threading import time from radosgw_agent import client +from radosgw_agent import exceptions as exc from radosgw_agent.util import get_dev_logger log = logging.getLogger(__name__) @@ -95,7 +96,7 @@ class Lock(threading.Thread): try: client.unlock_shard(self.conn, self.type, shard_num, self.zone_id, self.locker_id) - except client.HttpError as e: + except exc.HttpError as e: log.warn('failed to unlock shard %d in zone %s: %s', shard_num, self.zone_id, e) self.last_locked = None @@ -106,7 +107,7 @@ class Lock(threading.Thread): if self.shard_num is not None: try: self._acquire() - except client.HttpError as e: + except exc.HttpError as e: log.error('locking shard %d in zone %s failed: %s', self.shard_num, self.zone_id, e) self.failed = True -- 2.47.3