Preserve traceback in swift-dispersion-report
Commit c690bcb
fixed a bug in the dispersion report, but changed this
from a bare "raise" to "raise err", which loses the traceback. Not a
big deal, but worth putting back IMO.
Change-Id: Id5b72153a4b8df8e3faaf1fa3fb2040e28ba85cc
This commit is contained in:
parent
c690bcb683
commit
e02609c66a
|
@ -179,7 +179,7 @@ def object_dispersion_report(coropool, connpool, account, object_ring,
|
||||||
container, prefix='dispersion_', full_listing=True)[1]]
|
container, prefix='dispersion_', full_listing=True)[1]]
|
||||||
except urllib2.HTTPError as err:
|
except urllib2.HTTPError as err:
|
||||||
if err.getcode() != 404:
|
if err.getcode() != 404:
|
||||||
raise err
|
raise
|
||||||
|
|
||||||
print >>stderr, 'No objects to query. Has ' \
|
print >>stderr, 'No objects to query. Has ' \
|
||||||
'swift-dispersion-populate been run?'
|
'swift-dispersion-populate been run?'
|
||||||
|
|
Loading…
Reference in New Issue