The decorator for translating boto exceptions needs to return
explicitly, or it will lose the return value of the original function,
and cause full sync to fail for objects that aren't in the bucket
index log.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
@functools.wraps(func)
def translate_exception(*args, **kwargs):
try:
- func(*args, **kwargs)
+ return func(*args, **kwargs)
except boto.exception.S3ResponseError as e:
raise code_to_exc.get(e.status, HttpError)(e.status, e.body)
return translate_exception